mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 12:06:53 +00:00
Add flake8 hook. Tests are broken though.
This commit is contained in:
parent
777d06b336
commit
1c9ce9dfd2
3 changed files with 9 additions and 5 deletions
|
|
@ -13,14 +13,19 @@
|
||||||
description: Ensures that a file is either empty, or ends with one newline.
|
description: Ensures that a file is either empty, or ends with one newline.
|
||||||
entry: end-of-file-fixer
|
entry: end-of-file-fixer
|
||||||
language: python
|
language: python
|
||||||
|
- id: flake8
|
||||||
|
name: Flake8
|
||||||
|
description: This hook runs flake8.
|
||||||
|
entry: flake8
|
||||||
|
language: python
|
||||||
- id: name-tests-test
|
- id: name-tests-test
|
||||||
name: Tests should end in _test.py
|
name: Tests should end in _test.py
|
||||||
description: This verifies that test files are named correctly
|
description: This verifies that test files are named correctly
|
||||||
entry: name-tests-test
|
entry: name-tests-test
|
||||||
language: python
|
language: python
|
||||||
- id: pyflakes
|
- id: pyflakes
|
||||||
name: Pyflakes
|
name: Pyflakes (DEPRECATED, use flake8)
|
||||||
description: This validator runs pyflakes.
|
description: This hook runs pyflakes. (This is deprecated, use flake8).
|
||||||
entry: pyflakes
|
entry: pyflakes
|
||||||
language: python
|
language: python
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,7 @@
|
||||||
|
|
||||||
# Testing requirements
|
# Testing requirements
|
||||||
coverage
|
coverage
|
||||||
# Fuck you ipython
|
flake8
|
||||||
ipython<2.0.0
|
|
||||||
ipdb
|
|
||||||
mock
|
mock
|
||||||
git+git://github.com/pre-commit/pre-commit#egg=pre-commit
|
git+git://github.com/pre-commit/pre-commit#egg=pre-commit
|
||||||
pytest
|
pytest
|
||||||
|
|
|
||||||
1
setup.py
1
setup.py
|
|
@ -7,6 +7,7 @@ setup(
|
||||||
packages=find_packages('.', exclude=('tests*', 'testing*')),
|
packages=find_packages('.', exclude=('tests*', 'testing*')),
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'argparse',
|
'argparse',
|
||||||
|
'flake8',
|
||||||
'plumbum',
|
'plumbum',
|
||||||
'pyflakes',
|
'pyflakes',
|
||||||
'pyyaml',
|
'pyyaml',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue