From 7212e45a1c1ad14ab79f4ed4b8abd352a09bfb57 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 29 Nov 2019 16:13:36 +0000 Subject: [PATCH] Add lint pre-commit hooks --- .pre-commit-config.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cd8f6999b136..98f47f6e276e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 + - --