forked from canonical/jhack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (46 loc) · 1.1 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
[tox]
skipsdist=True
skip_missing_interpreters = True
envlist = lint, unit
[vars]
jhack_root = {toxinidir}/jhack
[testenv]
setenv =
PYTHONPATH = {[vars]jhack_root}/utils/event_recorder
PYTHONBREAKPOINT=ipdb.set_trace
PY_COLORS=1
passenv =
PYTHONPATH
[testenv:fmt]
description = Apply coding style standards to code
deps =
black
ruff
isort
commands =
isort --profile black {[vars]jhack_root}
black {[vars]jhack_root}
ruff --fix-only {[vars]jhack_root}
[testenv:lint]
description = Check code against coding style standards
deps =
black
ruff
pyproject-flake8
pep8-naming
isort
commands =
ruff {[vars]jhack_root} --exclude {[vars]jhack_root}/tests/
isort --check-only --skip {[vars]jhack_root}/tests/ --diff {[vars]jhack_root}
black --check --diff {[vars]jhack_root}
[testenv:unit]
description = Run evt recorder runtime
deps =
# use pyproject.toml as dependencies source
.
pytest
coverage[toml]
commands =
coverage run --source={[vars]jhack_root} \
-m pytest {[vars]jhack_root}/tests -v --tb native -s {posargs}
coverage report