-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
65 lines (55 loc) · 1.76 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
[tox]
envlist = {data, reporting}-django{42}
[wheel]
universal = 1
[doc8]
max-line-length = 120
[pep8]
ignore = E266
[pycodestyle]
exclude = .git,.tox,migrations,settings
max-line-length = 120
[pydocstyle]
ignore = D101,D106,D200,D203,D212,D213,D406,D407,D411,D412,D413
match-dir = (?!migrations)
[isort]
line_length = 120
known_edx =
known_django = django
known_djangoapp = model_utils
known_first_party = enterprise_data,enterprise_reporting, enterprise_data_roles
include_trailing_comma = true
multi_line_output = 3
sections = FUTURE,STDLIB,THIRDPARTY,DJANGO,DJANGOAPP,EDX,FIRSTPARTY,LOCALFOLDER
[pytest]
DJANGO_SETTINGS_MODULE = enterprise_data.settings.test
addopts = --cov enterprise_reporting --cov enterprise_data --cov enterprise_data_roles --cov-report term-missing --cov-report xml
norecursedirs = .* docs requirements node_modules
[testenv]
setenv =
DJANGO_SETTINGS_MODULE=enterprise_data.settings.test
deps =
setuptools
django42: Django>=4.2,<4.3
data: -r{toxinidir}/requirements/test-master.txt
reporting: -r{toxinidir}/requirements/test-reporting.txt
commands =
data: pytest -Wd {posargs} --ignore enterprise_reporting/
reporting: pytest -Wd --cov enterprise_reporting --cov-report term-missing --cov-report xml enterprise_reporting/tests
[testenv:quality]
setenv =
DJANGO_SETTINGS_MODULE=enterprise_data.settings.test
allowlist_externals =
make
rm
touch
deps =
setuptools
-r{toxinidir}/requirements/quality.txt
commands =
isort --check-only enterprise_data enterprise_data_roles manage.py setup.py
touch tests/__init__.py
pylint -j 0 enterprise_data enterprise_data_roles
rm tests/__init__.py
pycodestyle enterprise_data enterprise_data_roles
pydocstyle enterprise_data enterprise_data_roles