forked from openedx/xblock-skill-tagging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (44 loc) · 1.06 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
[tox]
envlist = py38-django{32,40}, quality
[pycodestyle]
exclude = .git,.tox,migrations
max-line-length = 120
[isort]
line_length = 120
known_edx =
known_django = django
known_djangoapp = model_utils
known_first_party = taxonomy
include_trailing_comma = true
multi_line_output = 3
sections = FUTURE,STDLIB,THIRDPARTY,DJANGO,DJANGOAPP,EDX,FIRSTPARTY,LOCALFOLDER
[pytest]
DJANGO_SETTINGS_MODULE = test_settings
addopts = --cov skill_tagging --cov-report term-missing --cov-report xml
norecursedirs = .* docs requirements site-packages
[testenv]
whitelist_externals =
make
deps =
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
-r{toxinidir}/requirements/test.txt
commands =
make test
[testenv:quality]
whitelist_externals =
make
rm
touch
pylint
pycodestyle
isort
deps =
-r{toxinidir}/requirements/quality.txt
commands =
touch tests/__init__.py
pylint skill_tagging tests
rm tests/__init__.py
pycodestyle skill_tagging tests
isort --check-only --diff tests skill_tagging test_settings.py
make selfcheck