Skip to content

Commit cb441b5

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
tox: split formatting testenv from flake8
Split the job of the formatting testenv that was previously running both flake8 and black. Let formatting focus on code formatting only (using black) and add a new testenv "flake8" for running said tool. This avoids overloading the testenvs and allows for more flexibility like running these envs with tox's --parallel option. Signed-off-by: John Mulligan <jmulligan@redhat.com>
1 parent b8e8534 commit cb441b5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tox.ini

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
[tox]
3-
envlist = formatting, {py3,py39}-mypy, py3, py39, schemacheck, py3-sys
3+
envlist = flake8, formatting, {py3,py39}-mypy, py3, py39, schemacheck, py3-sys
44
isolated_build = True
55

66
[testenv]
@@ -51,14 +51,19 @@ allowlist_externals =
5151
/usr/bin/py.test
5252

5353
[testenv:formatting]
54-
description = Check the formatting for the source files
54+
description = Check the style/formatting for the source files
5555
deps =
56-
flake8
5756
black>=24, <25
5857
commands =
59-
flake8 sambacc tests
6058
black --check -v .
6159

60+
[testenv:flake8]
61+
description = Basic python linting for the source files
62+
deps =
63+
flake8
64+
commands =
65+
flake8 sambacc tests
66+
6267
[testenv:schemacheck]
6368
description = Check the JSON Schema files are valid
6469
deps =

0 commit comments

Comments
 (0)