Skip to content

Commit

Permalink
Add pre-commit env/runner to Tox/GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanWillitts committed Nov 19, 2024
1 parent 2a00b95 commit 97c2bed
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,19 @@ legacy_tox_ini = """
envlist =
py{312,313}-dj{51,dev},
lint
pre-commit
isolated_build = true
[gh-actions]
python =
3.12: py312
3.13: py313, lint
3.12: py312, lint, pre-commit
3.13: py313
[gh-actions:env]
DJANGO =
5.1: dj51
dev: djdev, lint
dev: djdev, lint, pre-commit
[testenv]
deps =
Expand All @@ -70,7 +71,19 @@ commands =
[testenv:lint]
deps = -r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/lint.txt
commands =
python --version
pip --version
pip freeze
isort --profile=black --check --diff .
black --check --diff .
flake8 .
[testenv:pre-commit]
deps = pre-commit
commands =
python --version
pip --version
pip freeze
pre-commit autoupdate
pre-commit run --all-files
"""

0 comments on commit 97c2bed

Please sign in to comment.