Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(ruff): pin target-version to py313 (#98771)

Raúl Negrón-Otero450816c48a6f
diff --git a/pyproject.toml b/pyproject.toml
index db1f2691190c..75abb041225f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -327,6 +327,9 @@ profile = "black"
[tool.ruff]
line-length = 120
+# Pinned apart from requires-python. Raising it to py314 makes ruff format drop the parentheses
+# in `except (A, B):` (PEP 758) across the repo, and makes UP037 flag every quoted annotation.
+target-version = "py313"
force-exclude = true
exclude = [
".git",