-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
117 lines (106 loc) · 2.92 KB
/
pyproject.toml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[project]
name = "wahoo-results"
version = "0.1.0"
description = "A scoreboard for swimming using results from a CTS Dolphin timing system"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"datetime==5.5",
"ipinfo==5.1.1",
"matplotlib==3.10.0",
"pillow==11.1.0",
"pychromecast==14.0.5",
"pyinstaller==6.11.1",
"python-dateutil==2.9.0.post0",
"requests==2.32.3",
"segment-analytics-python==2.3.3",
"semver==3.0.3",
"sentry-sdk==2.20.0",
"watchdog==6.0.0",
]
[dependency-groups]
dev = [
"mdx-truly-sane-lists==1.3",
"mkdocs-glightbox==0.4.0",
"mkdocs-macros-plugin==1.3.7",
"mkdocs-material==9.5.50",
"mypy==1.14.1",
"pytest-cov==6.0.0",
"pytest==8.3.4",
"pytest-mypy==0.10.3",
"types-pillow==10.2.0.20240822",
"types-python-dateutil==2.9.0.20241206",
"types-requests==2.32.0.20241016",
]
docs = [
"mdx-truly-sane-lists==1.3",
"mkdocs-glightbox==0.4.0",
"mkdocs-macros-plugin==1.3.7",
"mkdocs-material==9.5.50",
]
[tool.coverage.html]
directory = "htmlcov"
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc.)?abstractmethod",
]
ignore_errors = true
omit = ["*_test.py", "build.py"]
skip_empty = true
[tool.coverage.run]
branch = true # Enable branch coverage
source = ["."] # Source code directories
[tool.coverage.xml]
output = "coverage.xml"
[tool.pytest.ini_options]
addopts = [
"-rA -q",
"--doctest-modules",
"--mypy",
"--ignore=build.py", # Don't check build.py
"--cov=.",
"--cov-config=.coveragerc",
"--cov-report=html",
"--cov-report=term",
"--cov-report=xml",
]
filterwarnings = [
"error",
# ttkwidgets has invalid escape sequences in its docstrings
'ignore:invalid escape sequence:',
# ttkwidgets uses "is" with a literal
'ignore:"is" with a literal. Did you mean "==":',
# Need updates to pytest-pylint for the following:
"ignore:Using the __implements__ inheritance pattern for BaseReporter is no longer supported.",
]
[tool.ruff]
target-version = "py311"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules/
select = [
"D", # Pydocstyle
"E101", # Pycodestyle: mixed spaces and tabs
"E4", # Pycodestyle: Imports
"E7", # Pycodestyle: misc
"E9", # Pycodestyle: error
"F", # Pyflakes
"I", # isort
"PL", # pylint
"RUF", # Ruff-specific
]
pydocstyle.convention = "pep257"