forked from autokey/autokey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
85 lines (71 loc) · 1.84 KB
/
Copy pathsetup.cfg
File metadata and controls
85 lines (71 loc) · 1.84 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[bdist_wheel]
universal = 0
[aliases]
test = pytest
[tool:pytest]
log_cli_level = debug
testpaths = tests
norecursedirs = dist build .tox scripts
addopts =
--cov=lib/autokey
; --cov-report=annotate:test_coverage_annotated_source
; --cov-report=html:test_coverage_report_html
--cov-report=term-missing
; --cov-report=xml
# Summarize failed tests at the end, including xfails and skips:
-r fa
; -v
[tox:tox]
; envlist = py310,py311,py312,py313,py314
# Only run the test environment by default, so `tox` can be run quickly
# without the overhead of coverage or any other build pathways:
envlist = test
# Run other environments/tasks with, for example: `tox -e clean``
[testenv]
deps =
dbus-python
pyhamcrest >= 2.1.0
PyGObject<=3.50.0
PyQt5
pytest
pytest-cov
pytest-timeout
pytest-xvfb
; Pass args to pytest by including them in the tox call after a `--`, eg tox
; -- tests/test_something.py
commands = pytest {posargs}
passenv =
DISPLAY
DBUS_SESSION_BUS_ADDRESS
USER
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage]
deps = coverage
{[testenv]deps}
setenv = COVERAGE_FILE = .coverage.{envname}
commands = pytest --cov={envsitepackagesdir}/autokey --cov-append --cov-context=test {posargs}
passenv = {[testenv]passenv}
[testenv:lint]
deps = coverage
{[testenv]deps}
flake8
commands = flake8 --count --select=E9,F63,F7,F82 --show-source --statistics --builtins=_ --max-complexity=10 --max-line-length=127 lib/autokey
passenv = {[testenv]passenv}
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
coverage html
[testenv:test]
deps = {[testenv]deps}
commands = pytest --no-cov {posargs}
passenv = {[testenv]passenv}
[coverage:html]
show_contexts = True
[coverage:run]
dynamic_context = test_function