-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
80 lines (67 loc) · 1.41 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
[build-system]
requires = ["setuptools>=60", "setuptools-scm>=8.0"]
[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 = ["django_crypto_fields"]
[tool.coverage.paths]
source = ["django_crypto_fields"]
[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{311}-dj{42,50},
py{312}-dj{50,dev},
lint
isolated_build = true
[gh-actions]
python =
3.11: py311
3.12: py312, lint
[gh-actions:env]
DJANGO =
4.2: dj42
5.0: dj50
dev: djdev, lint
[testenv]
deps =
pre-commit
edc-test-utils
edc-test-settings==0.1.2
coverage[toml]
tox
tox-gh-actions
dj42: Django==4.2.11
dj50: Django>=5.0
djdev: https://github.com/django/django/tarball/main
commands =
pip install -U pip
pip --version
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 =
isort --profile=black --check --diff .
black --check --diff .
flake8 .
"""