Skip to content

Commit 277e5a7

Browse files
tox: replace flake8 with a full pre-commit.
This runs much more. Also, the plain `flake8` complained, because it was configured differently: ``` $ toxuv -e flake8 flake8: commands[0]> flake8 --ignore E501 setup.py src src/mr/developer/commands.py:710:50: E203 whitespace before ':' src/mr/developer/extension.py:245:63: E203 whitespace before ':' src/mr/developer/svn.py:214:17: W503 line break before binary operator flake8: exit 1 (0.29 seconds) /Users/maurits/community/mr.developer> flake8 --ignore E501 setup.py src ```
1 parent 131de28 commit 277e5a7

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

tox.ini

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py310,py311,py312,py313,py314,py315,flake8
2+
envlist = lint,py310,py311,py312,py313,py314,py315
33

44
[base]
55
deps =
@@ -15,10 +15,13 @@ deps =
1515
configparser: configparser
1616

1717

18-
[testenv:flake8]
19-
commands = flake8 --ignore E501 setup.py src
20-
deps = flake8
18+
[testenv:lint]
19+
description = run linters that will help improve the code style
2120
skip_install = true
21+
deps =
22+
pre-commit
23+
commands =
24+
pre-commit run -a
2225

2326

2427
[pytest]

0 commit comments

Comments
 (0)