forked from totallylegitco/fighthealthinsurance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
executable file
·98 lines (93 loc) · 2.44 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
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
95
96
97
98
[tox]
passenv = *
requires = setuptools
pip
envlist =
py{310,311}-django{50}-async
py{310,311}-django{50}-sync
py310-black
py310-mypy
skip_missing_interpeters = true
[gh-actions]
python =
3.10: py310, black
3.11: py311
[gh-actions:env]
DJANGO =
5.0: django50
[black]
setenv =
DJANGO_SETTINGS_MODULE=fighthealthinsurance.settings
PYTHONPATH={toxinidir}
DJANGO_CONFIGURATION=Dev
MYPYPATH={toxinidir}
passenv = *
extras =
tests
coverage
deps =
setuptools
black
allowlist_externals = pytest, black, mypy
commands =
black: black --check setup.py fighthealthinsurance
[testenv:{sync,async,mypy,py310-django50-sync,py311-django50-sync,py310-django50-async,py311-django50-async}]
setenv =
DJANGO_SETTINGS_MODULE=fighthealthinsurance.settings
PYTHONPATH={toxinidir}
DJANGO_CONFIGURATION=Dev
MYPYPATH={toxinidir}
DJANGO_CONFIGURATION=Test
passenv = *
extras =
tests
coverage
deps =
setuptools
pytest
pytest-cov
pytest-django
pytest-xdist
isort==4.3.21
django_compressor_toolkit
django50: Django~=5.0.0
django50: django-stubs~=5.0.0
django-memoize
seleniumbase
djangorestframework
pymupdf
mypy
black
easyocr # Needed incase folks don't have tesseract-ocr installed
-rrequirements.txt
allowlist_externals = pytest, black, mypy
commands =
async: pytest tests/async/ \
--junitxml=reports/junit.xml \
-n auto \
--cov --cov-report xml:reports/coverage-{envname}.xml \
{posargs}
sync: pytest tests/sync/ \
--junitxml=reports/junit.xml \
--cov --cov-report xml:reports/coverage-{envname}-sync.xml \
{posargs}
py311-django50-sync: pytest tests/sync/ \
--junitxml=reports/junit.xml \
--cov --cov-report xml:reports/coverage-{envname}-sync.xml \
{posargs}
py310-django50-sync: pytest tests/sync/ \
--junitxml=reports/junit.xml \
--cov --cov-report xml:reports/coverage-{envname}-sync.xml \
{posargs}
py311-django50-async: pytest tests/async/ \
--junitxml=reports/junit.xml \
-n auto \
--cov --cov-report xml:reports/coverage-{envname}-async.xml \
{posargs}
py310-django50-async: pytest tests/async/ \
--junitxml=reports/junit.xml \
-n auto \
--cov --cov-report xml:reports/coverage-{envname}-async.xml \
{posargs}
black: black --check setup.py fighthealthinsurance
mypy: mypy --config-file mypy.ini -p fighthealthinsurance