-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (84 loc) · 2.07 KB
/
pyproject.toml
File metadata and controls
96 lines (84 loc) · 2.07 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
[project]
name = "cuneus"
version = "0.2.16"
description = "ASGI application wrapper"
readme = "README.md"
authors = [{ name = "Robert Myers", email = "robert@julython.org" }]
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.109.0",
"pydantic>=2.0",
"pydantic-settings>=2.0",
"click>=8.0",
"uvicorn[standard]>=0.27.0",
# Core dependencies we build on
"svcs>=24.1.0",
"structlog>=24.1.0",
]
[project.optional-dependencies]
dev = [
"asgi-lifespan>=2.1.0",
"aiosqlite[dev]>=0.22.1",
"cuneus[all]",
"opentelemetry-sdk",
"opentelemetry-api",
"opentelemetry-instrumentation",
"opentelemetry-instrumentation-fastapi",
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-cov>=4.0",
"pytest-mock",
"httpx>=0.27",
"ruff>=0.3",
"mypy>=1.8",
]
database = ["sqlalchemy[asyncio]>=2.0", "asyncpg>=0.29.0", "alembic>=1.13.0"]
redis = ["redis>=5.0"]
all = ["cuneus[database,redis]"]
[project.scripts]
cuneus = "cuneus.cli:main"
[project.urls]
Homepage = "https://github.com/rmyers/cuneus"
Documentation = "https://github.com/rmyers/cuneus#readme"
Repository = "https://github.com/rmyers/cuneus"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/cuneus"]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "ASYNC"]
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_ignores = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = [
# "--test-alembic",
"--log-cli-level=warning",
"--cov=cuneus",
"--cov-branch",
"--cov-report=term-missing:skip-covered",
"--cov-report=html",
"--strict-markers",
"--strict-config",
"--verbose",
]
[tool.coverage.run]
source = ["src/cuneus"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]