A wrapper to check score & Python3 porting for pre-commit with Pylint
Python
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pre_commit_pylint
.pre-commit-hooks.yaml
README.md
py3k.py
score_limit.py
setup.py

README.md

Usage

Add follow content to .pre-commit-config.yaml

-   repo: git@github.com:coldnight/pre-commit-pylint.git
    sha: v0.0.2
    hooks:
    -   id: pylint-py3k
    -   id: pylint-score-limit
        args:
        - --limit=8.5
        - --rcfile=./.pylintrc

Note

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'