-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (50 loc) · 1.09 KB
/
Copy pathpyproject.toml
File metadata and controls
60 lines (50 loc) · 1.09 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
[project]
name = "project"
version = "0.1.0"
description = "Python Project Template"
readme = "docs/README.md"
authors = [{name = "Amr Abed", email = ""}]
license = {text = "MIT"}
requires-python = ">=3.12"
dependencies = [
"click>=8.4.2",
]
[project.scripts]
app = "project.app:main"
init = "scripts.init:main"
[dependency-groups]
dev = [
"pytest>=9.1.1",
"ruff>=0.16.1",
"coverage>=7.15.3",
"pre-commit>=4.6.1",
"pyright>=1.1.411",
"pip-audit>=2.10.1",
]
docs = [
"mkdocs>=1.6.1",
"mkdocstrings[python]>=1.0.6",
"mkdocs-material>=9.7.7",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["E", "I", "S", "B", "TRY", "PTH"]
ignore = ["TRY003"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
[tool.coverage.run]
branch = true
source = ["project"]
[tool.coverage.report]
omit = ["tests/*"]
# fail_under = 90
[tool.pyright]
exclude = ["**/__pycache__", "**/.pytest_cache", ".venv"]
reportMissingImports = "error"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra -q"