prepare to test pep8 naming conventions
This commit is contained in:
parent
cccad6266d
commit
4aec0c539d
5
Makefile
5
Makefile
|
@ -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:
|
||||
|
|
10
setup.py
10
setup.py
|
@ -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)
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue