Skip to content

Commit 73693ed

Browse files
committed
Add proper pytest config
1 parent b8f6713 commit 73693ed

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

setup.cfg

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1+
[pytest]
2+
addopts=-vs --pep8 --flakes
3+
timeout=5
4+
norecursedirs=.tox
5+
pep8ignore =
6+
*.py E128
7+
docs/conf.py ALL
8+
tests/*.py ALL
9+
flakes-ignore =
10+
docs/conf.py ALL
11+
tests/*.py ALL
12+
13+
[flake8]
14+
ignore = E128
15+
exclude = .tox,.git,docs/conf.py,tests/*.py
16+
117
[wheel]
218
universal = 1

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def read(*parts):
1717
'coverage',
1818
'pytest',
1919
'pytest-cov>=1.4',
20+
'pytest-flakes',
21+
'pytest-pep8',
2022
'python-coveralls',
2123
]
2224

0 commit comments

Comments
 (0)