-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtox.ini
More file actions
67 lines (60 loc) · 1.28 KB
/
tox.ini
File metadata and controls
67 lines (60 loc) · 1.28 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[tox]
envlist = begin,py{37,38,39,310,311,312,313},end,black,flake8,deptry
skip_missing_interpreters = True
[testenv]
changedir = {toxinidir}
package = editable
deps =
-rrequirements.txt
covdefaults
coverage
pytest
PyQt5;python_version>="3.5"
QScintilla>=2.11.4;python_version>="3.5"
Qt.py
commands =
coverage run -m pytest {tty:--color=yes} {posargs:tests/}
[testenv:begin]
basepython = python3
deps =
coverage[toml]
build
commands =
coverage erase
[testenv:py{37,38,39,310,311,312,313}]
depends = begin
[testenv:end]
basepython = python3
depends =
begin
py{37,38,39,310,311,312,313}
parallel_show_output = True
deps =
coverage
commands =
coverage combine
coverage report
[testenv:black]
basepython = python3
deps =
black==22.12.0
commands =
python -m black . --check
[testenv:flake8]
basepython = python3
deps =
flake8-bugbear==22.12.6
Flake8-pyproject
flake8==5.0.4
pep8-naming==0.13.3
commands =
python -m flake8 .
[testenv:deptry]
# Only the 0.24.0 version of deptry seems to work when running in tox so py3.11+
basepython = python3.11
deps =
deptry>=0.24.0
# Install the optional dependencies users may use (excluding qt plugin versions)
.[cli,dev,shortcut]
commands =
python -m deptry .