forked from canonical/pytest-interface-tester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (36 loc) · 890 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
45
# Copyright 2023 Canonical
# See LICENSE file for licensing details.
[tox]
isolated_build = True
skip_missing_interpreters = True
envlist = unit, lint
[vars]
tst_path = {toxinidir}/tests
src_path = {toxinidir}/interface_tester
all_path = {[vars]tst_path} {[vars]src_path}
[testenv:unit]
description = run unittests
deps =
.[unit_tests]
commands =
pytest -v --tb native {[vars]tst_path}/unit --log-cli-level=INFO -s {posargs}
[testenv:lint]
skip_install = True
description = run linters (check only)
deps =
black==23.9.1
isort==5.12.0
ruff==0.0.289
commands =
black --check {[vars]all_path}
isort --profile black --check-only {[vars]all_path}
ruff {[vars]all_path}
[testenv:fmt]
skip_install=True
description = run formatters
deps =
black==23.9.1
isort==5.12.0
commands =
black {[vars]all_path}
isort --profile black {[vars]all_path}