Skip to content

Commit

Permalink
add pre-commit to gh and fix isort
Browse files Browse the repository at this point in the history
  • Loading branch information
eumiro committed Dec 26, 2020
1 parent 08528ec commit 035b9b7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ repos:
rev: 5.6.4
hooks:
- id: isort
args:
- -m3
- --tc
- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
hooks:
Expand Down

0 comments on commit 035b9b7

Please sign in to comment.