mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add lint pre-commit hooks
This commit is contained in:
parent
cc913911f9
commit
7212e45a1c
1 changed files with 24 additions and 0 deletions
|
@ -265,3 +265,27 @@ repos:
|
||||||
- -v
|
- -v
|
||||||
- --py-version=3.7
|
- --py-version=3.7
|
||||||
- --platform=linux
|
- --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
|
||||||
|
- --
|
||||||
|
|
Loading…
Add table
Reference in a new issue