-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (46 loc) · 963 Bytes
/
pyproject.toml
File metadata and controls
60 lines (46 loc) · 963 Bytes
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "python_project"
version = "0.0.1"
requires-python = ">=3.10"
[dependency-groups]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
]
[tool.coverage]
branch = true
source = ["src"]
[tool.coverage.run]
omit = [
"tests/*",
]
[tool.coverage.report]
fail_under = 80
show_missing = true
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.mypy]
disable_error_code = ["no-redef"] # for fasthtml
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
fix = true
line-length = 88
src = ["src"]
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 20
[tool.ruff.lint]
select = ["E", "F", "UP", "B", "SIM", "I"]
ignore = [
"F811", # redefined function, this is helpful for fasthtml
]
[tool.ruff.lint.isort]
known-local-folder = ["src"]
no-lines-before = ["local-folder"]