mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 21:04:17 +00:00
Add Fix End of Files to hooks
This commit is contained in:
parent
7673990291
commit
8aa14d218d
2 changed files with 5 additions and 3 deletions
|
|
@ -1,15 +1,17 @@
|
||||||
|
|
||||||
- repo: git@github.com:pre-commit/pre-commit-hooks
|
- repo: git@github.com:pre-commit/pre-commit-hooks
|
||||||
sha: 12794c1c19c001e3d05bcfe316b4f93b414035a7
|
sha: 76739902911688e8d7b13241409f9facc0e534e4
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyflakes
|
- id: pyflakes
|
||||||
files: '\.py$'
|
files: '\.py$'
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
files: '\.py$'
|
files: '\.py$'
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
files: '\.(py|sh|yaml)'
|
files: '\.(py|sh|yaml)$'
|
||||||
- id: name-tests-test
|
- id: name-tests-test
|
||||||
files: 'tests/.*\.py'
|
files: 'tests/.*\.py'
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
files: '\.(py|sh|yaml)$'
|
||||||
|
|
||||||
- repo: git@github.com:pre-commit/pre-commit
|
- repo: git@github.com:pre-commit/pre-commit
|
||||||
sha: c77d65d9cbbcf30e2be005f5ba8b63447deedc1e
|
sha: c77d65d9cbbcf30e2be005f5ba8b63447deedc1e
|
||||||
|
|
|
||||||
|
|
@ -53,4 +53,4 @@ def test_returns_one_form_2(ast_with_debug_import_form_2):
|
||||||
visitor.visit(ast_with_debug_import_form_2)
|
visitor.visit(ast_with_debug_import_form_2)
|
||||||
assert visitor.debug_import_statements == [
|
assert visitor.debug_import_statements == [
|
||||||
DebugStatement('pudb', 3, 0)
|
DebugStatement('pudb', 3, 0)
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue