-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
60 lines (49 loc) · 1.25 KB
/
tox.ini
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
[tox]
isolated_build = true
envlist =
black
safety
liccheck
mypy
coverage
py{3.9,3.10,3.11,3.12}-adj{4.0,4.1,4.2,5.0,5.1}
[testenv]
allowlist_externals = poetry
deps =
coverage
commands_pre =
poetry install
poetry install --no-root --sync
dj4.0: pip install Django>=4.0,<4.1
dj4.1: pip install Django>=4.1,<4.2
dj4.2: pip install Django>=4.2,<4.3
dj5.0: pip install Django>=5.0,<5.1
dj5.1: pip install Django>=5.1,<5.2
commands =
poetry run python manage.py --version
poetry run pytest --cov=src/unified_signals tests/
[testenv:safety]
basepython = python3.12
deps = safety
commands = safety check --ignore=70612 --ignore=71608
[testenv:mypy]
basepython = python3.12
commands =
poetry run mypy tests src/unified_signals
[testenv:black]
basepython = python3.12
commands =
black --check tests src/unified_signals
[testenv:liccheck]
basepython = python3.12
deps = liccheck
commands =
poetry export -f requirements.txt --output {envtmpdir}/requirements.txt
liccheck -r {envtmpdir}/requirements.txt -l PARANOID
[testenv:coverage]
basepython = python3.12
commands_pre =
poetry install
poetry install --no-root --sync
commands =
poetry run pytest --cov=src/unified_signals tests/