Run flake8 with tests. Add flake8 config to ignore common exclusions. Add comments to testing and docs extras to aid with merges.

This commit is contained in:
Jason R. Coombs 2018-03-03 13:33:07 -05:00
parent 41b814aa6c
commit 40da2c6500
3 changed files with 10 additions and 1 deletions

2
.flake8 Normal file
View File

@ -0,0 +1,2 @@
[flake8]
ignore = W191,W503

View File

@ -1,4 +1,4 @@
[pytest] [pytest]
norecursedirs=dist build .tox .eggs norecursedirs=dist build .tox .eggs
addopts=--doctest-modules addopts=--doctest-modules --flake8
doctest_optionflags=ALLOW_UNICODE ELLIPSIS doctest_optionflags=ALLOW_UNICODE ELLIPSIS

View File

@ -36,14 +36,21 @@ params = dict(
], ],
extras_require={ extras_require={
'testing': [ 'testing': [
# upstream
'pytest>=2.8', 'pytest>=2.8',
'pytest-sugar>=0.9.1', 'pytest-sugar>=0.9.1',
'collective.checkdocs', 'collective.checkdocs',
'pytest-flake8',
# local
], ],
'docs': [ 'docs': [
# upstream
'sphinx', 'sphinx',
'jaraco.packaging>=3.2', 'jaraco.packaging>=3.2',
'rst.linker>=1.9', 'rst.linker>=1.9',
# local
], ],
}, },
setup_requires=[ setup_requires=[