Skip to content

Commit 3a065a1

Browse files
Use pre-commit directly in the formatting tox job
Will prevent change in one of the script to affect the other one
1 parent dd5612f commit 3a065a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ commands =
3636
[testenv:formatting]
3737
basepython = python3
3838
deps =
39-
black==20.8b1
40-
isort==5.5.2
39+
pre-commit
40+
sphinx
41+
pytest
4142
commands =
42-
black --diff --check . --exclude="tests/functional/|tests/input|tests/extensions/data|tests/regrtest_data/|tests/data/|venv|astroid|.tox"
43-
isort . --check-only
43+
pre-commit run --all-files
4444
changedir = {toxinidir}
4545

4646
[testenv:mypy]

0 commit comments

Comments
 (0)