add flake8 config

This commit is contained in:
Patrick Kanzler 2017-01-30 01:26:50 +01:00
parent c48a0bee51
commit 43e30707be
No known key found for this signature in database
GPG Key ID: F07F07153306FCEF
3 changed files with 22 additions and 2 deletions

View File

@ -5,3 +5,7 @@ with-doctest=1
[bdist_wheel]
# This flag says that the code is written to work on both Python 2 and Python 3.
universal=1
[flake8]
exclude = .git,.tox,.github,.eggs,__pycache__,doc/conf.py,build,dist,capabilities-data,test
max-line-length = 100

View File

@ -118,7 +118,18 @@ setup(
setup_requires=[
'setuptools_scm',
],
tests_require=['jaconv', 'tox', 'pytest', 'pytest-cov', 'pytest-mock', 'nose', 'scripttest', 'mock', 'hypothesis'],
tests_require=[
'jaconv',
'tox',
'pytest',
'pytest-cov',
'pytest-mock',
'nose',
'scripttest',
'mock',
'hypothesis',
'flake8'
],
cmdclass={'test': Tox},
entry_points={
'console_scripts': [

View File

@ -1,5 +1,5 @@
[tox]
envlist = py27, py34, py35, docs
envlist = py27, py34, py35, docs, flake8
[testenv]
deps = nose
@ -19,3 +19,8 @@ changedir = doc
deps = sphinx>=1.5.1
setuptools_scm
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8