Add pylint to git pre-commit hooks

This commit is contained in:
clydebarrow 2024-05-12 22:55:14 +10:00
parent 47a1710b1e
commit 877c7263df
2 changed files with 8 additions and 1 deletions

View File

@ -40,3 +40,10 @@ repos:
hooks:
- id: clang-format
types_or: [c, c++]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]

View File

@ -1,4 +1,4 @@
pylint==3.1.0
pylint==3.1.0 # also change in .pre-commit-config.yaml when updating
flake8==7.0.0 # also change in .pre-commit-config.yaml when updating
black==24.4.0 # also change in .pre-commit-config.yaml when updating
pyupgrade==3.15.2 # also change in .pre-commit-config.yaml when updating