-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
94 lines (80 loc) · 2.04 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[build-system]
requires = ["setuptools>=60", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_file = "_version.py"
[tool.black]
line-length = 95
target-version = ["py312"]
extend-exclude = '''^(.*\/)*\b(migrations)\b($|\/.*$)'''
[tool.isort]
profile = "black"
py_version = "312"
skip = [".tox", ".eggs", "migrations"]
[tool.coverage.run]
parallel = false
branch = true
source = ["effect_edc"]
[tool.coverage.paths]
source = ["effect_edc"]
[tool.coverage.report]
show_missing = true
skip_covered = true
omit = ["requirements.txt"]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.tox]
legacy_tox_ini = """
[tox]
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, lint, pre-commit
3.13: py313
[gh-actions:env]
DJANGO =
5.1: dj51, lint, pre-commit
dev: djdev
EDC_CODEBASE =
Prod: edcprod, lint, pre-commit
Dev: edcdev
[testenv]
deps =
-r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/tox.txt
-r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/test_utils.txt
dj51: Django>=5.1,<5.2
djdev: https://github.com/django/django/tarball/main
commands =
pip install -U pip
python --version
pip --version
edcdev: pip install -U -r https://raw.githubusercontent.com/clinicedc/edc/develop/requirements.tests/edc.txt
edcdev: pip install -U git+https://github.com/effect-trial/effect-form-validators.git@develop
pip freeze
coverage run -a runtests.py
coverage report
[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
"""