Skip to content

Commit 76a75ea

Browse files
committed
Switch from pytest-pep8 to pycodestyle.
Pytest-pep8 received the last update in 2014, and it is now not working with pytest >= 4.5
1 parent d299bd7 commit 76a75ea

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

requirements-testing.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
mock
2-
pytest-pep8
32
coverage<4.0a1
43
pytest-cache
4+
pycodestyle

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[wheel]
22
universal = 1
33

4+
[pycodestyle]
5+
max-line-length = 120

tests/feature/test_reuse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def appends_1(empty_list):
2121
empty_list.append(1)
2222
return empty_list
2323

24+
2425
given('I have a fixture (appends 1 to a list) in reuse syntax', fixture='appends_1')
2526

2627

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ deps =
2727
commands = py.test tests --junitxml={envlogdir}/junit-{envname}.xml
2828

2929
[testenv:py27-pytestlatest-linters]
30-
commands = {[testenv]commands} pytest_bdd --pep8 -m pep8
30+
commands = pycodestyle pytest_bdd tests
3131

3232
[testenv:py27-pytestlatest-xdist]
3333
deps =

0 commit comments

Comments
 (0)