-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (44 loc) · 1.11 KB
/
pyproject.toml
File metadata and controls
57 lines (44 loc) · 1.11 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
[project]
name = "python-uv-template"
version = "0.1.0"
description = "This is a Python project template for personal use that uses UV management."
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
[dependency-groups]
dev = ["pre-commit>=4.4.0", "ruff>=0.14.5", "ty>=0.0.31", "uv-build>=0.11.2"]
[build-system]
requires = ["uv_build>=0.11.2,<0.12"]
build-backend = "uv_build"
## UV
[tool.uv]
package = true
[[tool.uv.index]]
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/"
default = true
## Type checker (ty)
[tool.ty]
[tool.ty.rules]
all = "error"
[tool.ty.analysis]
respect-type-ignore-comments = true
[tool.ty.terminal]
output-format = "concise"
## Linter and formatter (ruff)
[tool.ruff]
fix = true
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG001", # unused arguments in functions
]
[tool.ruff.format]
docstring-code-format = true
# skip-magic-trailing-comma = true