Skip to content

Commit

Permalink
Run pylint in pre-commit system hook (#7)
Browse files Browse the repository at this point in the history
* Run pylint in pre-commit system hook
* Use straight call to pylint for simplicity

`pylint` is available in the environment as long as `akro[dev]` is installed
  • Loading branch information
naeioi authored and ryanjulian committed Dec 13, 2018
1 parent 6d5e0c2 commit e9ff539
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ repos:
language: script
entry: scripts/check_commit_message
stages: [commit-msg]
- id: pylint
name: pylint
entry: pylint
args: ['--rcfile=setup.cfg']
stages: [commit, push]
language: system
files: \.py$

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.3.0
Expand Down Expand Up @@ -62,11 +69,3 @@ repos:
- id: yapf
args: ['-dpr']
stages: [commit, push]

- repo: https://github.com/pre-commit/mirrors-pylint
rev: v2.1.1
stages: [commit, push]
hooks:
- id: pylint
args: ['--rcfile=setup.cfg']
stages: [commit, push]

0 comments on commit e9ff539

Please sign in to comment.