File tree Expand file tree Collapse file tree 5 files changed +12
-14
lines changed
Expand file tree Collapse file tree 5 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 4040 pip install -U -e .[develop]
4141 pip install -U coveralls
4242 - name : Run style-checks
43- uses : pre-commit/ action@v3.0.1
43+ uses : j178/prek- action@v1
4444 - name : Run test suite
4545 run : |
4646 coverage erase
Original file line number Diff line number Diff line change 11repos :
2- # - repo: https://github.com/pre-commit/pre-commit-hooks
3- # rev: v2.1.0
4- # hooks:
5- # - id: trailing-whitespace
6- # - id: end-of-file-fixer
2+ - repo : builtin
3+ hooks :
4+ - id : trailing-whitespace
5+ - id : end-of-file-fixer
6+ - id : check-yaml
7+ - id : check-toml
78 - repo : local
89 hooks :
910 - id : black
Original file line number Diff line number Diff line change 55
66install :
77 python -m pip install -U -e .[develop]
8- pre-commit install
8+ prek install --overwrite
99 gitlint install-hook
1010
1111test :
@@ -21,12 +21,9 @@ coverage:
2121 coverage html
2222
2323lint :
24- pre-commit run --all-files flake8
24+ prek run --all-files flake8
2525
2626format :
27- pre-commit run --all-files black
28- pre-commit run --all-files isort
29- pre-commit run --all-files end-of-file-fixer
30- pre-commit run --all-files trailing-whitespace
27+ prek run --all-files black isort end-of-file-fixer trailing-whitespace
3128
3229style-check : format lint
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ develop = [
5252 " flake8-pyproject==1.2.4" ,
5353 " gitlint-core==0.19.1" ,
5454 ' isort==7.0.0' ,
55- ' pre-commit==4.5 .1' ,
55+ ' prek==0.3 .1' ,
5656]
5757packaging = [
5858 " build" ,
You can’t perform that action at this time.
0 commit comments