Files
carbon-lang/pyproject.toml
T
Chandler Carruth b344f3af12 Switch a few stragglers to uv and update python to 3.12 (#7296)
Not sure how these got missed when moving other things to `uv`, but this
should clean them up.

The bump to Python 3.12 is so that we can use `@override` with the
simple import from `typing`. This is needed by the newest versions of
`ty` to do type checking. Added the relevant `@override` annotations.

Assisted-by: Antigravity with Gemini
2026-06-03 05:34:44 +00:00

40 lines
900 B
TOML

# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
[project]
requires-python = ">=3.12"
[tool.ruff]
line-length = 80
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "ANN"]
ignore = ["ANN401", "ANN204"]
[tool.ruff.lint.per-file-ignores]
"*_test.py" = ["ANN"]
"proposals/**" = ["ANN"]
"examples/bazel_test_runner.py" = ["ANN"]
"**/lit.cfg.py" = ["ANN"]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ty.rules]
all = "error"
possibly-unresolved-reference = "ignore"
[tool.ty.src]
exclude = [
"proposals/p0555/figures.py",
"proposals/__init__.py",
"**/lit.cfg.py",
"examples/bazel_test_runner.py",
"**/*_test.py",
]
[tool.ty.analysis]
allowed-unresolved-imports = ["rich.**", "requests", "bazel_tools.**"]