-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
41 lines (36 loc) · 829 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
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
[tox]
skipsdist = True
skip_missing_interpreters = True
envlist = fmt, lint
[vars]
src_path = {toxinidir}/src
tst_path = {toxinidir}/tests
all_path = {[vars]src_path} {[vars]tst_path}
[testenv]
basepython = python3
setenv =
PYTHONPATH={toxinidir}:{[vars]src_path}
PYTHONBREAKPOINT=ipdb.set_trace
PY_COLORS=1
passenv =
PYTHONPATH
[testenv:fmt]
description = Apply coding style standards to code.
deps =
black
ruff
commands =
black {[vars]all_path}
ruff --fix {[vars]all_path}
[testenv:lint]
description = Check code against coding style standards.
deps =
black
codespell
ruff
commands =
codespell {[vars]all_path} {toxinidir}/README.md
ruff {[vars]all_path}
black --check --diff {[vars]all_path}