Merge pull request #3 from pre-commit/flake8
Flake8
diff --git a/hooks.yaml b/hooks.yaml
index 486c955..cb7ce0b 100644
--- a/hooks.yaml
+++ b/hooks.yaml
@@ -13,14 +13,19 @@
description: Ensures that a file is either empty, or ends with one newline.
entry: end-of-file-fixer
language: python
+- id: flake8
+ name: Flake8
+ description: This hook runs flake8.
+ entry: flake8
+ language: python
- id: name-tests-test
name: Tests should end in _test.py
description: This verifies that test files are named correctly
entry: name-tests-test
language: python
- id: pyflakes
- name: Pyflakes
- description: This validator runs pyflakes.
+ name: Pyflakes (DEPRECATED, use flake8)
+ description: This hook runs pyflakes. (This is deprecated, use flake8).
entry: pyflakes
language: python
- id: trailing-whitespace
diff --git a/requirements.txt b/requirements.txt
index 1753516..b63c160 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,9 +2,7 @@
# Testing requirements
coverage
-# Fuck you ipython
-ipython<2.0.0
-ipdb
+flake8
mock
git+git://github.com/pre-commit/pre-commit#egg=pre-commit
pytest
diff --git a/setup.py b/setup.py
index 4234288..094a989 100644
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,7 @@
packages=find_packages('.', exclude=('tests*', 'testing*')),
install_requires=[
'argparse',
+ 'flake8',
'plumbum',
'pyflakes',
'pyyaml',
diff --git a/tests/meta_test.py b/tests/meta_test.py
deleted file mode 100644
index 773bb0d..0000000
--- a/tests/meta_test.py
+++ /dev/null
@@ -1,12 +0,0 @@
-
-import subprocess
-
-from pre_commit.clientlib.validate_manifest import load_manifest
-
-
-def test_all_hooks_allow_no_files():
- manifest = load_manifest('hooks.yaml')
-
- for hook in manifest:
- if hook['id'] != 'pyflakes':
- subprocess.check_call([hook['entry']])