Added fix end of file hook.

This commit is contained in:
Anthony Sottile 2014-03-22 21:49:10 -07:00
parent 8c30419c13
commit dc1494d0e7
13 changed files with 15 additions and 16 deletions

View file

@ -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)$' 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: 47b7ca44ed1fcaa83464ed00cef72049ae22c33d sha: 47b7ca44ed1fcaa83464ed00cef72049ae22c33d

View file

@ -104,6 +104,3 @@ def test_sha(mock_repo_config):
def test_languages(config_for_python_pre_commit_git_repo): def test_languages(config_for_python_pre_commit_git_repo):
repo = Repository(config_for_python_pre_commit_git_repo) repo = Repository(config_for_python_pre_commit_git_repo)
assert repo.languages == set(['python']) assert repo.languages == set(['python'])