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

master
Jason R. Coombs 6 years ago
parent 41b814aa6c
commit 40da2c6500
  1. 2
      .flake8
  2. 2
      pytest.ini
  3. 7
      setup.py

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

@ -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

@ -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=[

Loading…
Cancel
Save