Skip to content

Commit 314555d

Browse files
MOS CIGerrit Code Review
authored andcommitted
Merge "Separate linting requirements"
2 parents 71a1e7f + ca26a82 commit 314555d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

setup.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ wsgi_scripts =
5050
test =
5151
pytest!=9.0.0
5252
pytest-mock
53-
flake8<3.8
54-
black
5553
pytest-cov
5654
pytest-xdist
5755
pytest-html
@@ -62,3 +60,6 @@ test =
6260
paramiko
6361
exec_helpers
6462
lxml
63+
lint =
64+
flake8<3.8
65+
black

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@ commands =
3333
pytest --cov=rockoon tests {posargs}
3434

3535
[testenv:pep8]
36+
deps =
37+
.[lint]
3638
# using black for code style, so ignore pycodestyle violations from flake8
3739
commands =
3840
flake8 rockoon tests
3941
black --check --diff rockoon tests
4042

4143
[testenv:black]
44+
deps =
45+
.[lint]
4246
envdir={toxworkdir}/pep8
4347
# actually format code with black
4448
# run flake8 just in case afterwards

0 commit comments

Comments
 (0)