-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (84 loc) · 1.69 KB
/
pyproject.toml
File metadata and controls
97 lines (84 loc) · 1.69 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[project]
name = "python-starter"
version = "0.0.0"
description = "A project template with UV package manager and CI integration."
license = "MIT"
readme = "README.md"
requires-python = ">=3.12"
authors = [
{name = "rjoydip", email = "joydipand@gmail.com"}
]
dependencies = [
"fastapi>=0.115.12",
"uvicorn>=0.34.2",
]
[dependency-groups]
dev = [
"pytest>=8.3.5",
"pytest-cov>=6.1.1",
"httpx>=0.28.1",
"pre-commit>=4.2.0",
]
lint = [
"ruff>=0.11.6",
"pyright>=1.1.399",
]
[build-system]
requires = ["setuptools", "wheel", "pip"]
build-backend = "setuptools.build_meta"
# Pytest
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra"
testpaths = [
"tests/*",
"integration",
]
python_files = "test_*.py"
# Logging
[tool.logging]
version = 1
[tool.logging.formatters.formatter]
class = "logging.Formatter"
format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
[tool.logging.handlers.fh]
level = "DEBUG"
class = "logging.FileHandler"
formatter = "formatter"
[tool.logging.handlers.ch]
level = "ERROR"
class = "logging.StreamHandler"
formatter = "formatter"
[tool.logging.spam_application]
level = "DEBUG"
handlers = ["fh", "ch"]
[tool.logging.spam_application.auxiliary]
propagate = false
[tool.logging.spam_application.auxiliary.Auxiliary]
propagate = false
# UV
[tool.uv]
upgrade = false
default-groups = "all"
# Pyright
[tool.pyright]
venvPath = "."
venv = ".venv"
ignore = ["docs/", "tests/test_*.py"]
# Ruff
[tool.ruff]
exclude = [
".git",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".venv",
".vscode",
"dist",
"site-packages",
"venv",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"