diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b366d31..0129297 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,15 +1,17 @@ - repo: git@github.com:pre-commit/pre-commit-hooks - sha: 12794c1c19c001e3d05bcfe316b4f93b414035a7 + sha: 76739902911688e8d7b13241409f9facc0e534e4 hooks: - id: pyflakes files: '\.py$' - id: debug-statements files: '\.py$' - id: trailing-whitespace - files: '\.(py|sh|yaml)' + files: '\.(py|sh|yaml)$' - id: name-tests-test files: 'tests/.*\.py' + - id: end-of-file-fixer + files: '\.(py|sh|yaml)$' - repo: git@github.com:pre-commit/pre-commit sha: c77d65d9cbbcf30e2be005f5ba8b63447deedc1e diff --git a/tests/debug_statement_hook_test.py b/tests/debug_statement_hook_test.py index 5a6040b..01ecdc1 100644 --- a/tests/debug_statement_hook_test.py +++ b/tests/debug_statement_hook_test.py @@ -53,4 +53,4 @@ def test_returns_one_form_2(ast_with_debug_import_form_2): visitor.visit(ast_with_debug_import_form_2) assert visitor.debug_import_statements == [ DebugStatement('pudb', 3, 0) - ] \ No newline at end of file + ]