-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
39 lines (33 loc) · 980 Bytes
/
Copy pathpyproject.toml
File metadata and controls
39 lines (33 loc) · 980 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
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "C4", "UP"]
[tool.ruff.lint.per-file-ignores]
# Semicolons are used intentionally in the H.264 SPS/VUI bit-reader to keep
# paired read-write operations on one line for readability.
"streaming/video_player.py" = ["E702"]
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
warn_return_any = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = ["-ra", "-q", "--strict-markers", "--strict-config"]
filterwarnings = [
"ignore::DeprecationWarning:discord",
]
[tool.coverage.run]
source = ["."]
omit = ["venv/*", "tests/*", "tools/*"]
branch = true
# Store relative paths in .coverage so the report renders consistently in CI.
relative_files = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]