Skip to content

Commit b5d223c

Browse files
authored
Add tox-ini-fmt pre-commit hook (#496)
1 parent b4fdcc3 commit b5d223c

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

.pre-commit-config.yaml

+4
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

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
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 pytest {posargs:tests}
12-
deps = -r requirements/{envname}.txt
13-
setenv =
14-
PYTHONDEVMODE=1
13+
python \
14+
-W error::ResourceWarning \
15+
-W error::DeprecationWarning \
16+
-W error::PendingDeprecationWarning \
17+
-m pytest {posargs:tests}

0 commit comments

Comments
 (0)