-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
104 lines (95 loc) · 2.62 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
[build-system]
requires = ["maturin>=1.4,<2.0"]
build-backend = "maturin"
[project]
name = "psqlpy"
requires-python = ">=3.8"
keywords = [
"postgresql",
"psql",
"async-driver",
"psql-driver",
"postgresql-driver",
"python-driver",
]
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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
authors = [{ email = "[email protected]" }, { name = "Kiselev Aleksandr" }]
maintainers = [{ name = "Kiselev Aleksandr", email = "[email protected]" }]
description = "Async PostgreSQL driver for Python written in Rust"
dynamic = ["version"]
[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.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 = 120
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.per-file-ignores]
"python/psqlpy/*" = ["PYI021"]
"python/tests/*" = [
"S101", # Use of assert detected
"S608", # Possible SQL injection vector through string-based query construction
"D103", # Missing docstring in public function
"S311", # Standard pseudo-random generators are not suitable for security/cryptographic purposes
]
"./psqlpy-stress/psqlpy_stress/migrations/env.py" = ["INP001"]
"examples/*" = ["INP001"]
[tool.ruff.pydocstyle]
convention = "pep257"
ignore-decorators = ["typing.overload"]