-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
83 lines (71 loc) · 1.83 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
# Tox (http://tox.testrun.org/) - run tests in multiple virtualenvs.
# Also contains configuration settings for all tools executed by Tox.
[tox]
envlist =
flake8
# Python/Django combinations that are officially supported
py{35,36,37,38}-django22
py{36,37,38}-django30
py{36,37,38}-django31
behave-latest
bandit
readme
docs
clean
[testenv]
description = Unit tests
deps =
pytest
django22: Django>=2.2,<3.0
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
latest: Django
latest: git+https://github.com/behave/behave.git#egg=behave
commands =
pytest
{envpython} tests/manage.py behave --simple --tags=~@failing --tags=~@requires-live-http {posargs:--format=progress}
{envpython} tests/manage.py behave --tags=~@failing {posargs:--format=progress}
[testenv:bandit]
description = PyCQA security linter
deps = bandit<1.6
commands = bandit -r --ini tox.ini
[testenv:clean]
description = Remove Python bytecode and other debris
deps = pyclean
commands =
pyclean -v {toxinidir}
rm -rf .tox/ behave_django.egg-info/ build/ dist/ docs/_build/
whitelist_externals =
rm
[testenv:docs]
description = Build package documentation (HTML)
deps = sphinx
changedir = docs
commands = make html
whitelist_externals = make
[testenv:flake8]
description = Static code analysis and code style
deps = flake8
commands = flake8
[testenv:readme]
description = Ensure README renders on PyPI
deps = twine
commands =
{envpython} setup.py sdist bdist_wheel
twine check dist/*
[travis:env]
DJANGO =
2.2: django22
3.0: django30
3.1: django31
[bandit]
exclude = .git,.idea,.tox,build,dist,docs,tests
targets = .
[behave]
paths = tests/acceptance
tests/test_app
show_skipped = no
[flake8]
exclude = docs,.cache,.tox,*.egg-info,.ropeproject
[tool:pytest]
testpaths = tests/unit