-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (123 loc) · 3.42 KB
/
Copy pathpyproject.toml
File metadata and controls
135 lines (123 loc) · 3.42 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
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
128
129
130
131
132
133
134
135
[build-system]
requires = ["maturin>=1.4,<2.0"]
build-backend = "maturin"
[project]
name = "psqlpy"
requires-python = ">=3.10"
keywords = [
"postgresql",
"psql",
"async-driver",
"psql-driver",
"postgresql-driver",
"python-driver",
]
readme = { file = "README.md", content-type = "text/markdown" }
classifiers = [
"Typing :: Typed",
"Topic :: Database",
"Development Status :: 4 - Beta",
"Programming Language :: Rust",
"Programming Language :: Python",
"Operating System :: MacOS",
"Operating System :: Microsoft",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
"Topic :: Database :: Front-Ends",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
authors = [{ email = "askiselev00@gmail.com" }, { name = "Kiselev Aleksandr" }]
maintainers = [{ name = "Kiselev Aleksandr", email = "askiselev00@gmail.com" }]
description = "Async PostgreSQL driver for Python written in Rust"
dynamic = ["version"]
[dependency-groups]
dev = [
{include-group = "lint"},
{include-group = "test"}
]
lint = [
"ruff"
]
test = [
"pytest",
"pytest-timeout",
"anyio",
]
[tool.maturin]
python-source = "python"
module-name = "psqlpy._internal"
features = ["pyo3/extension-module"]
[project.urls]
homepage = "https://github.com/psqlpy-python/psqlpy"
repository = "https://github.com/psqlpy-python/psqlpy"
documentation = "https://psqlpy-python.github.io/"
[tool.pytest.ini_options]
# Safety net so a wedged test (e.g. a listener waiting on a notification that
# never arrives) fails fast instead of hanging the whole CI job. The listener
# tests bound their own waits well below this; this is the backstop for anything
# unforeseen.
timeout = 120
[tool.mypy]
strict = true
mypy_path = "python"
ignore_missing_imports = true
allow_subclassing_any = true
allow_untyped_calls = true
pretty = true
show_error_codes = true
implicit_reexport = true
allow_untyped_decorators = true
warn_return_any = false
warn_unused_ignores = false
[tool.ruff]
fix = true
unsafe-fixes = true
line-length = 89
exclude = [".venv/", "psqlpy-stress"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"EM",
"FBT",
"TRY003",
"D1",
"D203",
"D213",
"G004",
"FA",
"ANN401",
"PLR0913",
"E721",
"A002",
"S311",
]
[tool.ruff.lint.per-file-ignores]
"python/psqlpy/*" = ["PYI021"]
"python/tests/*" = [
"S101", # Use of assert detected
"S608", # Possible SQL injection via string-based query construction
"D103", # Missing docstring in public function
"S311", # Standard pseudo-random generators not suitable for security
"PLR2004", # Magic value in comparison (common in test assertions)
"D205", # 1 blank line required between summary and description
]
"python/psqlpy/_internal/exceptions.pyi" = [
"D205",
"RUF002",
]
"./psqlpy-stress/psqlpy_stress/migrations/env.py" = ["INP001"]
"examples/*" = ["INP001"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
ignore-decorators = ["typing.overload"]
[project.entry-points."sqlalchemy.dialects"]
psqlpy = "psqlpy_sqlalchemy.dialect:PSQLPyAsyncDialect"