-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (70 loc) · 1.65 KB
/
pyproject.toml
File metadata and controls
79 lines (70 loc) · 1.65 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
[project]
name = "sqlc-gen-better-python"
version = "0.1.0"
description = "Add your description here"
requires-python = ">=3.10.0,<3.14.0"
dependencies = [
"aiosqlite>=0.21.0",
"asyncpg>=0.30.0",
"attrs>=25.3.0",
"ciso8601>=2.3.2",
"msgspec>=0.19.0",
]
[dependency-groups]
dev = [
"nox>=2025.5.1",
]
dev-complete = [
"nox>=2025.5.1",
{ include-group = "pyright"},
{ include-group = "pytest"},
{ include-group = "ruff" },
]
pyright = [
"asyncpg-stubs>=0.30.1",
"pyright>=1.1.400",
{ include-group = "pytest" }
]
coverage = [
"coverage[toml]>=7.8.0",
]
pytest = [
"pytest>=8.3.5",
"pytest-asyncio>=0.26.0",
"pytest-cov>=6.1.1",
"pytest-dependency>=0.6.0",
{ include-group = "coverage" },
]
ruff = [
"ruff>=0.11.9",
]
[tool.pyright]
pythonVersion = "3.10"
typeCheckingMode = "strict"
reportUnnecessaryTypeIgnoreComment = "error"
deprecateTypingAliases = true
reportCallInDefaultInitializer = true
reportImplicitOverride = true
reportImplicitStringConcatenation = true
reportImportCycles = true
reportPropertyTypeMismatch = true
reportShadowedImports = true
reportUninitializedInstanceVariable = true
[tool.pytest.ini_options]
required_plugins = ["pytest-asyncio", "pytest-dependency"]
asyncio_default_fixture_loop_scope = "session"
[tool.coverage.run]
relative_files = true
parallel = true
branch = true
omit = ["**/*test*.py"]
[tool.coverage.report]
show_missing = true
skip_covered = false
exclude_lines = [
"\\#\\s*pragma: no cover$",
"^\\s*if typing.TYPE_CHECKING:$",
# -------------- custom for adapters / converters ----------------
"^\\s*def _adapt_",
"^\\s*def _convert_",
]