-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
61 lines (52 loc) · 1.66 KB
/
pyproject.toml
File metadata and controls
61 lines (52 loc) · 1.66 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
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling" ]
[project]
name = "<project_package_name>"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
classifiers = [ "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.13" ]
dependencies = [ ]
urls.repository = ""
[dependency-groups]
dev = [
"debugpy>=1.8.14",
"prek>=0.2.11",
"py-spy>=0.4.1",
"pytest>=8.4.1",
"pytest-cov>=7",
"pytest-profiling>=1.8.1",
"ruff>=0.12",
"ty>=0.0.2",
"types-python-dateutil>=2.9.0.20250708",
]
[tool.hatch.build.targets.wheel]
packages = [ "src/<project_package_name>" ]
[tool.ruff]
format.quote-style = "double"
format.docstring-code-format = true
# See https://docs.astral.sh/ruff/rules/ for linting codes.
lint.select = [ "A", "B", "C4", "D", "E4", "E7", "E9", "F", "FURB", "PT", "SIM", "T20", "TRY", "UP" ]
# Disable requiring documentation for every parameter
lint.ignore = [ "D100","D417" ]
# Only enforce docstring and exception formatting rules in the src directory
lint.per-file-ignores."!src/**.py" = [ "D" ]
# Enforce logger use over print statements only in src/ and test/
lint.per-file-ignores."!{src,test}/**.py" = [ "T20" ]
# Disable docstring requirements in __init__.py
lint.per-file-ignores."__init__.py" = [ "D" ]
# Mark flake8-bugbear errors as unfixable
lint.unfixable = [ "B" ]
lint.pydocstyle.convention = "numpy"
[tool.pytest.ini_options]
pythonpath = [ ".", "src" ]
testpaths = [ "test" ]
[tool.coverage.run]
omit = [ 'test' ]
[tool.uv]
required-environments = [
"sys_platform == 'darwin' and platform_machine == 'arm64'",
]
default-groups = [ "dev" ]