Skip to content

Commit

Permalink
fix: make pylint pre-commit a locak hook
Browse files Browse the repository at this point in the history
Was having errors similar to this issue:
`https://github.com/pre-commit/pre-commit-hooks/issues/157`
Using it locally fixes `import-error`.

Signed-off-by: Ângelo Lovatto <angelolovatto@gmail.com>
  • Loading branch information
0xangelo committed Jun 16, 2019
1 parent e2ad94e commit 99b426e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ repos:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v2.3.1
- repo: local
hooks:
- id: pylint
args: [-E]
name: pylint
entry: python -m pylint.__main__
language: system
types: [python]
stages: [commit]
args: [-E]

0 comments on commit 99b426e

Please sign in to comment.