mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Added fix end of file hook.
This commit is contained in:
parent
8c30419c13
commit
dc1494d0e7
13 changed files with 15 additions and 16 deletions
|
|
@ -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)$'
|
||||
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: 47b7ca44ed1fcaa83464ed00cef72049ae22c33d
|
||||
|
|
|
|||
|
|
@ -104,6 +104,3 @@ def test_sha(mock_repo_config):
|
|||
def test_languages(config_for_python_pre_commit_git_repo):
|
||||
repo = Repository(config_for_python_pre_commit_git_repo)
|
||||
assert repo.languages == set(['python'])
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue