forked from canonical/metacontroller-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
36 lines (31 loc) · 925 Bytes
/
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
[flake8]
max-line-length = 100
max-complexity = 10
copyright-check = True
copyright-author = Canonical Ltd.
[tox]
skipsdist = True
[testenv]
setenv =
PYTHONPATH={toxinidir}/src:{toxinidir}/lib
deps =
-rrequirements.txt
-r test-requirements.txt
[testenv:lint]
deps =
flake8
flake8-copyright<0.3
black==20.8b1
commands =
flake8 {toxinidir}/src {toxinidir}/tests
black --check {toxinidir}/src {toxinidir}/tests
[testenv:unit]
commands =
pytest -vv --show-capture=no --log-cli-level=INFO {toxinidir}/tests/unit
[testenv:integration]
deps =
{[testenv]deps}
-r test-integration-requirements.txt
# _no_trust failing in github runner, possibly because it starts before previous charm is torn down? Works in isolation locally
commands =
pytest -vv --show-capture=no --log-cli-level=INFO -s {posargs} {toxinidir}/tests/integration --ignore=tests/integration/test_charm_no_trust.py