Skip to content

Commit a4765d3

Browse files
committed
tox: Run flake8 on tests too
There's only one issue that needs fixing, thankfully. Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent 3f14182 commit a4765d3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/test_patch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ def test_list_with_multiple_filters(self, mock_log, mock_echo, mock_index,
392392
assert mock_log.warning.called
393393

394394
@mock.patch('git_pw.api.LOG')
395-
def test_list_api_v1_1(self, mock_log, mock_echo, mock_index, mock_version):
395+
def test_list_api_v1_1(self, mock_log, mock_echo, mock_index,
396+
mock_version):
396397
"""Validate behavior with API v1.1."""
397398

398399
mock_version.return_value = (1, 1)

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ commands =
1111
pytest -Wall {posargs}
1212

1313
[testenv:pep8]
14+
skip_install = true
1415
deps =
1516
flake8
1617
commands =
17-
flake8 {posargs} git_pw
18+
flake8 {posargs:git_pw tests}
1819

1920
[testenv:mypy]
2021
deps=

0 commit comments

Comments
 (0)