-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
127 lines (116 loc) · 2.97 KB
/
pyproject.toml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[project]
name = "microbootstrap"
description = "Package for bootstrapping new micro-services"
readme = "README.md"
requires-python = ">=3.9,<4"
keywords = [
"python",
"microservice",
"bootstrap",
"opentelemetry",
"logging",
"error-tracing",
"litestar",
"fastapi",
]
classifiers = [
"Typing :: Typed",
"Topic :: Software Development :: Build Tools",
"Operating System :: MacOS",
"Operating System :: Microsoft",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"eval-type-backport>=0.2",
"fastapi>=0.100",
"fastapi-offline-docs>=1",
"granian>=1",
"health-checks>=1",
"litestar>=2.9",
"litestar-offline-docs>=1",
"opentelemetry-api>=1.25.0",
"opentelemetry-exporter-otlp>=1.25.0",
"opentelemetry-exporter-prometheus-remote-write>=0.46b0",
"opentelemetry-instrumentation>=0.46b0",
"opentelemetry-instrumentation-asgi>=0.46b0",
"opentelemetry-instrumentation-fastapi>=0.46b0",
"opentelemetry-instrumentation-system-metrics>=0.46b0",
"opentelemetry-sdk>=1.25.0",
"prometheus-client>=0.20",
"prometheus-fastapi-instrumentator>=6.1",
"pydantic-settings>=2",
"rich>=13",
"sentry-sdk>=2.7",
"structlog>=24",
]
dynamic = ["version"]
authors = [{ name = "community-of-python" }]
[dependency-groups]
dev = [
"anyio>=4.8.0",
"httpx>=0.28.1",
"mypy>=1.14.1",
"opentelemetry-instrumentation-redis>=0.48b0",
"pre-commit>=4.0.1",
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"pytest-xdist>=3.6.1",
"redis>=5.2.1",
"ruff>=0.9.1",
"trio>=0.28.0",
"typing-extensions>=4.12.2",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.mypy]
plugins = ["pydantic.mypy"]
files = ["microbootstrap", "tests"]
python_version = "3.9"
strict = true
pretty = true
show_error_codes = true
[tool.ruff]
target-version = "py39"
line-length = 120
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"EM",
"FBT",
"TRY003",
"FIX002",
"TD003",
"D1",
"D106",
"D203",
"D213",
"G004",
"FA",
"COM812",
"ISC001",
]
[tool.ruff.lint.isort]
no-lines-before = ["standard-library", "local-folder"]
lines-after-imports = 2
[tool.ruff.lint.extend-per-file-ignores]
"tests/*.py" = ["S101", "S311"]
[tool.coverage.report]
exclude_also = ["if typing.TYPE_CHECKING:", 'class \w+\(typing.Protocol\):']
omit = ["tests/*"]
[tool.pytest.ini_options]
addopts = '--cov=. -p no:warnings --cov-report term-missing'