Add lint pre-commit hooks

This commit is contained in:
Pedro Algarvio 2019-11-29 16:13:36 +00:00
parent cc913911f9
commit 7212e45a1c
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -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
- --