-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (67 loc) · 1.52 KB
/
pyproject.toml
File metadata and controls
78 lines (67 loc) · 1.52 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
[project]
name = "ethelred"
version = "0.1.0"
description = "ethelred.opensafely.org"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"altair",
"duckdb",
"pandas",
"requests",
"sqlalchemy",
"streamlit",
"watchdog",
]
[tool.coverage.run]
branch = true
dynamic_context = "test_function"
[tool.coverage.report]
fail_under = 100
show_missing = true
skip_covered = true
exclude_also = [
"@abc.abstractmethod",
'if __name__ == "__main__":',
]
omit = [
"tasks/__main__.py",
"tasks/github_api.py", # too costly to maintain integration tests
"tests/jobserver/get_tables.py",
"tests/jobserver/tables.py",
]
[tool.coverage.html]
show_contexts = true
[tool.pytest]
filterwarnings = [
# Streamlit modifies an Altair chart's theme using a deprecated attribute. We don't
# control Streamlit, so we ignore warnings from that module without importing Altair.
"ignore:.*:Warning:streamlit.elements.vega_charts",
]
pythonpath = ["app"]
markers = ["slow"]
strict_markers = true
[tool.ruff]
src = [".", "app"]
target-version = "py312"
[tool.ruff.lint]
extend-select = [
"A", # flake8-builtins
"I", # isort
"ICN002", # flake8-import-conventions.banned-aliases
]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.lint.flake8-import-conventions.banned-aliases]
"altair" = ["alt"]
"pandas" = ["pd"]
"streamlit" = ["st"]
[tool.uv]
exclude-newer = "2026-04-07T00:00:00Z"
[dependency-groups]
dev = [
"coverage",
"pre-commit",
"pytest",
"ruff",
]