-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
49 lines (43 loc) · 1.15 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
[flake8]
max-line-length = 120
ignore = D100
[tox]
skipsdist = True
[testenv]
basepython = python3
setenv =
PYTHONPATH={toxinidir}
[testenv:unit]
deps =
pyyaml
pytest
pytest-cov
requests
git+https://github.com/juju-solutions/charms.unit_test/#egg=charms.unit_test
commands =
pytest \
--cov-report term-missing \
--cov reactive.kata --cov-fail-under 30 \
--tb native -s {posargs}
[testenv:lint]
deps =
flake8
flake8-docstrings
black
commands =
flake8 {toxinidir}/reactive {toxinidir}/tests
black --check {toxinidir}/reactive {toxinidir}/tests
[testenv:format]
envdir = {toxworkdir}/lint
deps =
black
commands = black {toxinidir}/reactive {toxinidir}/tests
[testenv:validate-wheelhouse]
deps =
# Temporarily pin setuptools to avoid the breaking change from 58 until
# all dependencies we use have a chance to update.
# See: https://setuptools.readthedocs.io/en/latest/history.html#v58-0-0
# and: https://github.com/pypa/setuptools/issues/2784#issuecomment-917663223
setuptools<58
allowlist_externals = {toxinidir}/tests/validate-wheelhouse.sh
commands = {toxinidir}/tests/validate-wheelhouse.sh