Add follow content to .pre-commit-config.yaml
- repo: [email protected]:coldnight/pre-commit-pylint.git
sha: v0.0.2
hooks:
- id: pylint-py3k
- id: pylint-score-limit
args:
- --limit=8.5
- --rcfile=./.pylintrc
Before pre-commit
run, you should install pylint and requirements manually:
$ pip install --upgrade pylint
$ pip install --upgrade requirements.txt
$ pre-commit run
# or
$ git commit -m 'commit message'