Skip to content

Commit 40da2c6

Browse files
committed
Run flake8 with tests. Add flake8 config to ignore common exclusions. Add comments to testing and docs extras to aid with merges.
1 parent 41b814a commit 40da2c6

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
ignore = W191,W503

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[pytest]
22
norecursedirs=dist build .tox .eggs
3-
addopts=--doctest-modules
3+
addopts=--doctest-modules --flake8
44
doctest_optionflags=ALLOW_UNICODE ELLIPSIS

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,21 @@
3636
],
3737
extras_require={
3838
'testing': [
39+
# upstream
3940
'pytest>=2.8',
4041
'pytest-sugar>=0.9.1',
4142
'collective.checkdocs',
43+
'pytest-flake8',
44+
45+
# local
4246
],
4347
'docs': [
48+
# upstream
4449
'sphinx',
4550
'jaraco.packaging>=3.2',
4651
'rst.linker>=1.9',
52+
53+
# local
4754
],
4855
},
4956
setup_requires=[

0 commit comments

Comments
 (0)