Skip to content

Commit

Permalink
Merge pull request #55480 from s0undt3ch/features/pytest-staged-15
Browse files Browse the repository at this point in the history
Add lint pre-commit hooks
  • Loading branch information
dwoz committed Dec 1, 2019
2 parents cc91391 + 7212e45 commit 1021276
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,27 @@ repos:
- -v
- --py-version=3.7
- --platform=linux

- repo: https://github.com/saltstack/salt-nox-pre-commit
rev: master
hooks:
- id: nox-py2
alias: lint-salt
name: Lint Salt
files: ^((setup|noxfile)|salt/\.*)\.py$
args:
- -e
- lint-salt
- --

- repo: https://github.com/saltstack/salt-nox-pre-commit
rev: master
hooks:
- id: nox-py2
alias: lint-tests
name: Lint Tests
files: ^tests/\.*\.py$
args:
- -e
- lint-salt
- --

0 comments on commit 1021276

Please sign in to comment.