-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathtox.ini
More file actions
45 lines (37 loc) · 930 Bytes
/
tox.ini
File metadata and controls
45 lines (37 loc) · 930 Bytes
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
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: None
[tox]
minversion = 4.1.3
envlist = py{39,310,311,312,313},format,lint,sort-imports,static-type-checker
[testenv]
description = runs the tests for this Python version
skip_install = True
commands =
pip install unittest-xml-reporting
python bin/test/runtests.py
[testenv:lint]
description = runs flake8
skip_install = true
deps = flake8==7.1.1
commands = flake8 .
[testenv:check-imports]
description = runs isort --check
skip_install = true
deps = isort==5.13.2
commands = isort --check --profile black .
[testenv:sort-imports]
description = runs isort
skip_install = true
deps = isort==5.13.2
commands = isort --profile black .
[testenv:format]
description = runs black
skip_install = true
deps = black==23.11.0
commands = black .
[testenv:static-type-checker]
description = runs mypy
skip_install = true
deps =
mypy==1.17.1
commands = mypy bin