Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre-commit hooks #17

Merged
merged 7 commits into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style: add isort commit hook
  • Loading branch information
edeckers committed Mar 2, 2022
commit 6e36dc51f8bd087eb79420ca074034867cb56b2d
14 changes: 9 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ repos:
- repo: https://github.com/pycqa/pylint
rev: pylint-2.6.0
hooks:
- id: pylint
args: [--rcfile=src/pylintrc]
- id: pylint
args: [--rcfile=src/pylintrc]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.17.0
hooks:
- id: gitlint
args: [--staged, --msg-filename]
stages: [commit-msg]
- id: gitlint
args: [--staged, --msg-filename]
stages: [commit-msg]
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 22.1.0
hooks:
Expand Down
3 changes: 0 additions & 3 deletions src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
black==22.1.0
gitlint==0.17.0
pre-commit==2.17.0
pylint==2.9.1
PyYAML==6.0