-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
107 lines (93 loc) · 2.13 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
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry]
name = "pg-purepy"
version = "0.11.0"
description = "A pure-Python anyio-based PostgreSQL adapter."
authors = ["Lura Skye <[email protected]>"]
license = "LGPL-3.0-or-later"
classifiers = [
"Development Status :: 4 - Beta",
"Topic :: Database",
"Topic :: Database :: Front-Ends",
"Operating System :: OS Independent",
]
readme = "README.rst"
[tool.poetry.dependencies]
python = ">=3.11"
scramp = ">=1.4.5"
attrs = ">=24.2.0"
python-dateutil = ">=2.9.0.post0"
anyio = ">=4.6.2.post1"
structlog = ">=24.4.0"
whenever = ">=0.6.9"
[tool.poetry.group.docs.dependencies]
sphinx = ">=8.1.3"
sphinx-inline-tabs = ">=2023.4.21"
sphinx-autodoc-typehints = ">=2.5.0"
sphinxcontrib-jquery = ">=4.1"
sphinx-rtd-theme = ">=3.0.1"
[tool.poetry.group.dev.dependencies]
pytest = ">=8.3.3"
trio = ">=0.27.0"
isort = ">=5.13.2"
pytest-cov = ">=5.0.0"
ruff = ">=0.7.1"
ujson = ">=5.10.0"
pyright = ">=1.1.386"
[tool.poetry.extras]
docs = ["Sphinx", "sphinxcontrib-trio", "sphinx-autodoc-typehints", "sphinx-rtd-theme",
"sphinx-inline-tabs"]
[tool.pytest.ini_options]
log_cli_level = "5"
log_cli = false
addopts = "--cov --cov-report=html"
[tool.coverage.run]
branch = true
source = ["pg_purepy"]
[tool.coverage.report]
exclude_lines = [
"raise UnknownMessageError", # this only happens if the postgresql server breaks
"pragma: no cover" # default behaviour...
]
[tool.ruff]
target-version = "py312"
respect-gitignore = true
# fix = true
src = ["src/pg_purepy"]
line-length = 100
output-format = "full"
[tool.ruff.lint]
select = [
"RUF",
"F",
"E",
"W",
"I",
"UP",
"B",
"YTT",
"ASYNC",
"PYI",
"SIM",
"RET",
"PERF",
]
ignore = [
"W291",
"W293",
"E266"
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.pyright]
pythonVersion = "3.12"
include = ["src"]
typeCheckingMode = "strict"
reportImplicitOverride = "warning"
reportUnusedVariable = false
reportIncompatibleVariableOverride = false
reportPrivateUsage = false
[tool.poetry-dynamic-versioning]
enable = true