prepare to test pep8 naming conventions

This commit is contained in:
Tobias Oberstein 2015-09-08 23:24:19 +02:00
parent cccad6266d
commit 4aec0c539d
3 changed files with 14 additions and 3 deletions

View File

@ -35,6 +35,9 @@ publish: clean
python setup.py register
python setup.py sdist upload
test_styleguide:
flake8 --statistics --max-line-length=119 -qq autobahn
# direct test via pytest (only here because of setuptools test integration)
test_pytest:
python -m pytest -rsx .
@ -104,7 +107,7 @@ autopep8:
# This will run pep8, pyflakes and can skip lines that end with # noqa
flake8:
flake8 --ignore=E501 autobahn
flake8 --ignore=E501,N801,N802,N803,N805,N806 autobahn
# run PyLint
pylint:

View File

@ -108,7 +108,15 @@ extras_require_all = extras_require_twisted + extras_require_asyncio + \
# development dependencies
#
extras_require_dev = ["pep8", "flake8", "mock>=1.0.1", "pytest>=2.6.4", "unittest2>=1.1.0"]
extras_require_dev = [
"pep8",
"flake8",
"pep8-naming",
"pyflakes",
"mock>=1.0.1",
"pytest>=2.6.4",
"unittest2>=1.1.0"
]
# for testing by users with "python setup.py test" (not Tox, which we use)
#

View File

@ -44,5 +44,5 @@ commands =
sh -c "which python"
python -V
flake8 --version
flake8 --ignore=E501 autobahn
flake8 --ignore=E501,N801,N802,N803,N805,N806 autobahn
basepython = python2.7