File tree Expand file tree Collapse file tree 4 files changed +55
-0
lines changed
Expand file tree Collapse file tree 4 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ [flake8]
2+ ignore =
3+ W503
4+ E203
5+ E501
6+
Original file line number Diff line number Diff line change 1+ name : Run pre-commit hooks
2+ on :
3+ push :
4+ paths :
5+ - ' **.py'
6+ workflow_dispatch :
7+
8+ jobs :
9+ code-quality :
10+ runs-on : ubuntu-latest
11+ steps :
12+ uses : actions/checkout@v3
13+
14+ - name : Set up Python
15+ uses : actions/setup-python@v4.3.0
16+ with :
17+ python-version : ' 3.8'
18+
19+ - name : Install dev requirements
20+ run : pip install -r dev-requirements.txt
21+
22+ - name : Run pre-commit hooks
23+ run : pre-commit run --all-files --show-diff-on-failure
24+
Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/psf/black
3+ rev : 22.12.0
4+ hooks :
5+ - id : black
6+
7+ - repo : https://github.com/pycqa/isort
8+ rev : 5.12.0
9+ hooks :
10+ - id : isort
11+ args : [ "--profile", "black" ]
12+
13+ - repo : https://github.com/pycqa/flake8
14+ rev : 6.0.0
15+ hooks :
16+ - id : flake8
17+
18+ - repo : local
19+ hooks :
20+ - id : no_commit
21+ name : Check for NO_COMMIT marker
22+ entry : bash -c "git diff --cached -U0 | (! grep NO_COMMIT)"
23+ language : system
Original file line number Diff line number Diff line change 1+ pre-commit
2+
You can’t perform that action at this time.
0 commit comments