Skip to content

Commit b205514

Browse files
authored
Add tox-ini-fmt pre-commit hook (#536)
1 parent 3003359 commit b205514

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ repos:
2323
- id: setup-cfg-fmt
2424
args:
2525
- --include-version-classifiers
26+
- repo: https://github.com/tox-dev/tox-ini-fmt
27+
rev: 1.3.0
28+
hooks:
29+
- id: tox-ini-fmt
2630
- repo: https://github.com/rstcheck/rstcheck
2731
rev: v6.1.2
2832
hooks:

tox.ini

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
[tox]
2-
envlist =
3-
py{37,38,39,310,311}
2+
requires =
3+
tox>=4.2
4+
env_list =
5+
py{311, 310, 39, 38, 37}
46

57
[testenv]
8+
deps =
9+
-r requirements/{envname}.txt
10+
set_env =
11+
PYTHONDEVMODE = 1
612
commands =
7-
python \
8-
-W error::ResourceWarning \
9-
-W error::DeprecationWarning \
10-
-W error::PendingDeprecationWarning \
11-
-m coverage run \
12-
-m pytest -p no:randomly {posargs:tests}
13-
deps = -r requirements/{envname}.txt
14-
setenv =
15-
PYTHONDEVMODE=1
13+
python \
14+
-W error::ResourceWarning \
15+
-W error::DeprecationWarning \
16+
-W error::PendingDeprecationWarning \
17+
-m coverage run \
18+
-m pytest -p no:randomly {posargs:tests}

0 commit comments

Comments
 (0)