From 460a6585154b4d70ff476b7ad2568ef2a18906f8 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Mon, 1 Feb 2021 09:20:20 +0000 Subject: [PATCH] salt-rewrite can now run on the whole test suite --- .pre-commit-config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c327b89844..7ded92feedb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1111,10 +1111,11 @@ repos: - repo: https://github.com/s0undt3ch/salt-rewrite # Automatically rewrite code with known rules - rev: 0.8.2 + rev: 1.0.0 hooks: - id: salt-rewrite - files: ^tests/pytests/.*\.py$ + files: ^tests/.*\.py$ + args: [-E, fix_asserts] - repo: https://github.com/timothycrosley/isort rev: "1e78a9acf3110e1f9721feb591f89a451fc9876a"