forked from canonical/dex-auth-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (29 loc) · 820 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
# Copyright 2021 Canonical Ltd.
# See LICENSE file for licensing details.
[flake8]
max-line-length = 100
ignore = W503
copyright-check = True
copyright-author = Canonical Ltd.
select = E,F,W,C
[tox]
skipsdist = True
envlist = lint,unit,integration
[testenv]
setenv =
PYTHONPATH={toxinidir}:{toxinidir}/src
PYTHONBREAKPOINT=ipdb.set_trace
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:unit]
commands = pytest -vvs {toxinidir}/tests/unit {posargs}
[testenv:integration]
deps =
{[testenv]deps}
pytest-operator
commands = pytest -vvs --tb native --log-cli-level=INFO --asyncio-mode=auto {toxinidir}/tests/integration {posargs}
[testenv:lint]
commands =
flake8 {toxinidir}/tests {toxinidir}/src
black --check --diff {toxinidir}/tests {toxinidir}/src