Skip to content

Commit c0b2c33

Browse files
authored
Add tox-ini-fmt pre-commit hook (#1001)
1 parent b4b7947 commit c0b2c33

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

.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: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
[tox]
2-
envlist =
2+
requires =
3+
tox>=4.2
4+
env_list =
5+
py311-django{42, 41}
6+
py310-django{42, 41, 40, 32}
7+
py39-django{42, 41, 40, 32}
8+
py38-django{42, 41, 40, 32}
39
py37-django{32}
4-
py38-django{32,40,41,42}
5-
py39-django{32,40,41,42}
6-
py310-django{32,40,41,42}
7-
py311-django{41,42}
810

911
[testenv]
10-
passenv =
11-
DB_USER
12-
DB_PASSWORD
12+
deps =
13+
-r requirements/{envname}.txt
14+
pass_env =
1315
DB_HOST
16+
DB_PASSWORD
1417
DB_PORT
18+
DB_USER
19+
set_env =
20+
PYTHONDEVMODE = 1
1521
commands =
16-
python \
17-
-W error::ResourceWarning \
18-
-W error::DeprecationWarning \
19-
-W error::PendingDeprecationWarning \
20-
-m coverage run \
21-
-m pytest {posargs:tests}
22-
deps = -r requirements/{envname}.txt
23-
setenv =
24-
PYTHONDEVMODE=1
22+
python \
23+
-W error::ResourceWarning \
24+
-W error::DeprecationWarning \
25+
-W error::PendingDeprecationWarning \
26+
-m coverage run \
27+
-m pytest {posargs:tests}

0 commit comments

Comments
 (0)