-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (73 loc) · 1.44 KB
/
pyproject.toml
File metadata and controls
82 lines (73 loc) · 1.44 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
[build-system]
requires = ["setuptools", "wheel", "numpy~=2.0", "torch~=2.0"]
build-backend = "setuptools.build_meta"
[project]
name = "my-proj"
version = "0.1.0"
requires-python = ">=3.12,<4"
dependencies = [
"numpy ~=2.0",
"torch ~=2.0",
]
[dependency-groups]
dev = [
"pytest >=8.0",
"pytest-benchmark >=5.2",
"setuptools >=80.9",
"pybind11-stubgen >=2.5",
]
[tool.uv]
reinstall-package = ["my-proj"]
python-preference = "only-managed"
# === Ruff ========================================================================================
[tool.ruff]
line-length = 120
indent-width = 4
extend-include = []
exclude = [
"examples/",
"notebooks/",
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"jupyter_lab_config.py",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
exclude = ["src/tests/*"]
fixable = ["ALL"]
unfixable = []
select = [
"F", # Pyflakes
# "D", # pydocstyle
"E", # Errors
"W", # Warning
"TCH", # Typecheck
"TID",
"SIM",
]
ignore = [
"E501", # Line too long
"E731", # Do not assign a lambda expression, use a def
]