-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
44 lines (37 loc) · 945 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
37
38
39
40
41
42
43
44
[flake8]
max-line-length = 88
ignore =
# line break before binary operator
W503
[tox]
skipsdist = True
envlist = lint,unit
[testenv]
allowlist_externals = tox
setenv =
PYTHONPATH={toxinidir}:{toxinidir}/lib
PYTHONBREAKPOINT=ipdb.set_trace
passenv = OS_*, TEST_*
[testenv:unit]
deps =
pyyaml
pytest
charms.unit_test
ipdb
commands =
pytest --tb native -s {posargs} {toxinidir}/tests/unit --ignore={toxinidir}/ops
tox -c {toxinidir}/ops/ -e unit
[testenv:format]
deps =
black
ruff
commands =
ruff check --fix {toxinidir}/lib {toxinidir}/reactive {toxinidir}/ops {toxinidir}/tests
black {toxinidir}/lib {toxinidir}/reactive {toxinidir}/ops {toxinidir}/tests
[testenv:lint]
deps =
black
ruff
commands =
ruff check {toxinidir}/lib {toxinidir}/reactive {toxinidir}/ops {toxinidir}/tests
black --check {toxinidir}/lib {toxinidir}/reactive {toxinidir}/ops {toxinidir}/tests