diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0c8ba89f34f..64cd04da6d8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1114,6 +1114,13 @@ repos: hooks: - id: remove-import-headers + - repo: https://github.com/s0undt3ch/salt-rewrite + # Automatically rewrite code with known rules + rev: 0.8.2 + hooks: + - id: salt-rewrite + files: ^tests/pytests/.*\.py$ + - repo: https://github.com/timothycrosley/isort rev: "1e78a9acf3110e1f9721feb591f89a451fc9876a" hooks: