-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
51 lines (40 loc) · 1.38 KB
/
Copy pathpyproject.toml
File metadata and controls
51 lines (40 loc) · 1.38 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
[project]
name = "python_template_repo"
version = "0.1.0"
description = "A Python template repository."
readme = "README.md"
requires-python = ">=3.11"
dependencies = []
[project.optional-dependencies]
# Dev tools are floor-pinned (>=) here, but the EXACT versions are locked in
# uv.lock and that locked set is what everyone gets: CI runs `uv sync --locked`
# and pre-commit invokes them via `uv run`. To move to the latest releases, run
# `uv lock --upgrade` (or `uv add --dev ruff@latest`) and commit the new uv.lock.
dev = ["ruff>=0.8", "pyright>=1.1.390", "pytest>=8.0", "pre-commit>=3.7"]
[tool.uv]
package = false
prerelease = "if-necessary-or-explicit"
[tool.ruff]
line-length = 88
fix = true
[tool.ruff.lint]
select = ["E", "F", "W", "C", "N", "Q", "B", "I"]
extend-select = ["ANN", "ARG", "D", "PIE", "PT", "RET", "S", "TCH", "UP"]
ignore = []
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pep8-naming]
ignore-names = ["X*"]
[tool.ruff.lint.per-file-ignores]
# Tests may use assert (S101), skip docstrings (D), and omit return annotations (ANN201).
"tests/**" = ["S101", "D", "ANN201"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# Make the repo root importable so `import main` works (flat, non-src layout).
pythonpath = ["."]
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.pyright]
typeCheckingMode = "standard"