forked from CMSgov/regulations-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
65 lines (53 loc) · 1.22 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
[tox]
envlist = clean,py{27,34,35,36}-django{18,19,110,111},lint,docs
[testenv]
deps =
django18: django~=1.8.0
django19: django~=1.9.0
django110: django~=1.10.0
django111: django~=1.11.0
# Test requirements
coverage~=4.0
mock~=1.3
model_mommy~=1.3
pytest~=3.0
pytest_cov~=2.4
pytest_django~=3.1
commands =
pytest --cov --cov-append regcore
[testenv:clean]
deps:
coverage~=4.0
commands = coverage erase
skip_install = True
skipsdist = True
[testenv:lint]
deps =
# Dependencies are pinned so that linting is consistent
bandit==1.4.0
flake8==2.5.4
commands =
flake8 regcore manage.py setup.py
bandit -r --ini tox.ini regcore manage.py setup.py
[testenv:docs]
deps = sphinx
commands =
# Tox won't do wildcard expansion, so run in a shell
sh -c "rm docs/regcore*.rst"
sphinx-apidoc -F -o docs regcore
sphinx-build -b dirhtml -d docs/_build/doctrees/ docs/ docs/_build/dirhtml/
whitelist_externals = sh
[bandit]
exclude = regcore/tests
[coverage]
source = regcore
[flake8]
exclude = regcore/migrations/*.py,regcore/settings/*.py
[isort]
known_third_party=six
[pytest]
python_files = tests_*.py *_test.py *_tests.py
DJANGO_SETTINGS_MODULE = regcore.settings.base
[travis]
python =
3.6: py36, lint, docs