Skip to content

Commit 2d8ade9

Browse files
Add pre-commit env/runner to Tox/GH Actions
1 parent da7b9cb commit 2d8ade9

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

pyproject.toml

+16-3
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,19 @@ legacy_tox_ini = """
3838
envlist =
3939
py{312,313}-dj{51,dev},
4040
lint
41+
pre-commit
4142
4243
isolated_build = true
4344
4445
[gh-actions]
4546
python =
46-
3.12: py312
47-
3.13: py313, lint
47+
3.12: py312, lint, pre-commit
48+
3.13: py313
4849
4950
[gh-actions:env]
5051
DJANGO =
5152
5.1: dj51
52-
dev: djdev, lint
53+
dev: djdev, lint, pre-commit
5354
5455
[testenv]
5556
deps =
@@ -70,7 +71,19 @@ commands =
7071
[testenv:lint]
7172
deps = -r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/lint.txt
7273
commands =
74+
python --version
75+
pip --version
76+
pip freeze
7377
isort --profile=black --check --diff .
7478
black --check --diff .
7579
flake8 .
80+
81+
[testenv:pre-commit]
82+
deps = pre-commit
83+
commands =
84+
python --version
85+
pip --version
86+
pip freeze
87+
pre-commit autoupdate
88+
pre-commit run --all-files
7689
"""

0 commit comments

Comments
 (0)