Skip to content

Commit

Permalink
add pre commit hook (#556)
Browse files Browse the repository at this point in the history
* add precommit

* add precommit
  • Loading branch information
aloctavodia authored Aug 15, 2022
1 parent 743e86f commit 8e70964
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
fail_fast: true

repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
args: [--diff, --check]

- repo: https://github.com/PyCQA/pylint
rev: v2.10.2
hooks:
- id: pylint
args: [--rcfile=.pylintrc]
- repo: https://github.com/MarcoGorelli/madforhooks
rev: 0.3.0
hooks:
- id: no-print-statements
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ pytest-cov>=2.6.1
pytest>=4.4.0
seaborn>=0.9.0
sphinx>=1.8
pre-commit>=2.19

0 comments on commit 8e70964

Please # to comment.