mirror of
https://github.com/saltstack/salt.git
synced 2025-04-15 17:20:19 +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
|
||||
- --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
|
||||
- --
|
||||
|
|
Loading…
Add table
Reference in a new issue