Skip to content

Commit fd8630b

Browse files
committed
Improve autofixing bits in tox
1 parent 57d3641 commit fd8630b

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

tox.ini

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
minversion = 4.0.0
3-
envlist = py3,ruff,codespell,pep8,mypy
3+
envlist = py3,ruff,black,codespell,autofix,mypy
44
skipsdist = True
55

66
[testenv]
@@ -15,11 +15,15 @@ deps = -r{toxinidir}/requirements.txt
1515
-r{toxinidir}/test-requirements.txt
1616
commands = stestr run {posargs}
1717

18-
[testenv:pep8]
18+
[testenv:autofix]
1919
commands =
20+
black {tox_root}
2021
ruff format {tox_root}
2122
codespell {tox_root} -w
22-
flake8 {postargs}
23+
ruff check {tox_root} --fix
24+
25+
[testenv:black]
26+
commands = black {tox_root} --check
2327

2428
[testenv:codespell]
2529
commands = codespell {posargs}
@@ -46,11 +50,3 @@ commands =
4650

4751
[testenv:mypy]
4852
commands = mypy {tox_root} {posargs}
49-
50-
[flake8]
51-
# select only hacking errors
52-
select = H
53-
show-source = True
54-
ignore = H102
55-
builtins = _
56-
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build

0 commit comments

Comments
 (0)