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 Dec 5, 2024
1 parent 98ec00b commit 7c22206
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,21 @@ envlist =
py{312,313}-dj{51}-edc{prod,dev},
py{313}-dj{dev}-edc{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, lint
5.1: dj51, lint, pre-commit
dev: djdev
EDC_CODEBASE =
Prod: edcprod, lint
Prod: edcprod, lint, pre-commit
Dev: edcdev
[testenv]
Expand All @@ -102,7 +103,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 7c22206

Please sign in to comment.