-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
66 lines (55 loc) · 1.35 KB
/
tox.ini
File metadata and controls
66 lines (55 loc) · 1.35 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
[tox]
envlist = lint, type-check
isolated_build = true
skip_missing_interpreters = true
# Note: Main testing is done via 'briefcase dev --test' directly
# Tox is used for code quality checks only
[testenv:lint]
deps =
ruff>=0.1.0
skip_install = true
commands =
ruff check src tests
ruff format --check src tests
[testenv:type-check]
deps =
mypy>=1.0.0
types-requests
types-Pillow
skip_install = true
commands =
mypy src/accessiweather/simple --ignore-missing-imports
[coverage:run]
source = src/accessiweather/simple
omit =
*/tests/*
*/test_*
*/__pycache__/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
[flake8]
max-line-length = 100
extend-ignore = E203, W503
exclude = .tox,.git,__pycache__,build,dist,*.egg
[pytest]
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
asyncio_mode = auto
addopts =
--strict-markers
--disable-warnings
--tb=short
markers =
asyncio: marks tests as async
slow: marks tests as slow
integration: marks tests as integration tests
accessibility: marks tests related to accessibility features
toga: marks tests specific to Toga framework
wx_only: marks tests that only run with wxPython (skip in Toga environment)