add Flake8Command, a setuptools command

This runs flake8 with the default options on all Python files
referenced by a package's setup.py. It works with both
package-based and py_modules-based file lists.
This commit is contained in:
Peter Teichman 2012-09-09 08:24:04 -04:00
parent 2f9825a6af
commit 2e04e30d51
2 changed files with 40 additions and 0 deletions

View file

@ -24,6 +24,11 @@ setup(
url="http://bitbucket.org/tarek/flake8",
packages=["flake8", "flake8.tests"],
scripts=["flake8/flake8"],
entry_points = {
"distutils.commands": [
"flake8 = flake8.run:Flake8Command",
],
},
long_description=README,
classifiers=[
"Environment :: Console",