Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (145 loc) · 4.33 KB
/
Copy pathpyproject.toml
File metadata and controls
166 lines (145 loc) · 4.33 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# Development workspace for Muru. This project is never published: the two
# distributions live under packages/muru and packages/muructl. This file holds
# the shared development environment and tool configuration.
[project]
name = "muru-workspace"
version = "0" # never published; the project version lives in Cargo.toml
description = "Development workspace for Muru (not published)"
requires-python = ">=3.11"
dependencies = []
[dependency-groups]
dev = [
"brotli>=1.2.1",
"maturin>=1.8,<2",
"mypy>=1.14",
"nox>=2025.2.9",
"pre-commit>=4.0",
"pytest>=8.3",
"ruff>=0.9",
"towncrier>=24.8",
"zstandard>=0.25.0",
]
fixtures = [
"debugpy>=1.8.17",
"django>=5.2",
"fastapi>=0.115",
"flask>=3.1",
"gunicorn>=23.0",
"python-multipart>=0.0.20",
"starlette>=0.45",
"uvicorn>=0.34",
"websockets>=15",
# Tracing (section 11.6) with wrapture, which needs Python 3.12 or later.
"wrapture>=1.0.0b5; python_version >= '3.12'",
"wrapture-instrumentation>=1.0.0b3; python_version >= '3.12'",
]
# gRPC mounts (section 6.13). grpcio has no free-threaded wheels, so jobs
# on a free-threaded Python leave this group out with UV_NO_GROUP=grpc.
grpc = [
"grpcio>=1.84",
"grpcio-reflection>=1.84",
"grpcio-tools>=1.84",
]
bench = [
"granian>=2.0",
"gunicorn>=23.0",
"uvicorn>=0.34",
]
docs = [
"furo>=2024.8.6",
"myst-parser>=4.0",
"sphinx>=8.1",
"sphinx-copybutton>=0.5",
"sphinx-design>=0.6",
"sphinxcontrib-mermaid>=1.0",
]
[tool.uv]
package = false
default-groups = ["dev", "docs", "fixtures", "grpc"]
# The docs are built on a current interpreter. soupsieve, which furo brings
# in, is past CVE-2026-126190 only from 4.0, which needs Python 3.11.5, so
# the docs group is not resolved for anything older (#653).
[tool.uv.dependency-groups]
docs = { requires-python = ">=3.11.5" }
[tool.ruff]
line-length = 100
target-version = "py311"
extend-exclude = ["scratch", "docs/_build", "*.md"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "D", "ANN", "RUF"]
ignore = [
"ANN401", # Any is sometimes the honest type
"D105", # dunder methods implementing standard protocols need no docstring
"D107", # __init__ is documented on the class
"D202", # the project puts a blank line after a function docstring (AGENTS.md)
"D203", # incompatible with D211
"D213", # incompatible with D212
"RUF012", # mutable class attributes are fine in this code base
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D", "ANN"]
"docs/**" = ["D"]
"docs/tutorials/code/**" = ["D", "ANN", "F403", "F405"]
"noxfile.py" = ["D"]
"bench/**" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.isort]
known-first-party = ["muru"]
[tool.mypy]
strict = true
files = ["packages/muru/python/muru"]
mypy_path = "packages/muru/python"
python_version = "3.11"
warn_unreachable = true
# grpcio and grpcio-reflection have no type information.
[[tool.mypy.overrides]]
module = ["grpc", "grpc.*", "grpc_reflection.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests/python"]
pythonpath = ["packages/muru/python", "tests"]
addopts = "-m 'not requires_docker and not requires_network and not requires_root and not slow'"
markers = [
"requires_docker: needs a container runtime",
"requires_network: needs network access",
"requires_root: needs root (cgroups, user switching)",
"requires_linux: needs Linux-only features",
"slow: takes a long time",
]
[tool.towncrier]
name = "Muru"
directory = "changelog.d"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
title_format = "## {version} ({project_date})"
issue_format = "[#{issue}](https://github.com/muruhq/muru/issues/{issue})"
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecated"
name = "Deprecated"
showcontent = true
[[tool.towncrier.type]]
directory = "removed"
name = "Removed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "security"
name = "Security"
showcontent = true
[[tool.towncrier.type]]
directory = "docs"
name = "Documentation"
showcontent = true