-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
99 lines (85 loc) · 2.2 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
[tool.poetry]
name = "asyncpg-stubs"
version = "0.30.1.dev0"
description = "asyncpg stubs"
homepage = "https://github.com/bryanforbes/asyncpg-stubs"
authors = ["Bryan Forbes <bryan@reigndropsfall.net>"]
license = "BSD-3-Clause"
readme = "README.md"
packages = [
{ include = "asyncpg-stubs" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Typing :: Typed"
]
[tool.poetry.dependencies]
python = "^3.8"
asyncpg = ">=0.30,<0.31"
typing-extensions = "^4.7.0"
[tool.poetry.group.dev.dependencies]
async-timeout = "5.0.1"
black = "24.8.0"
pre-commit = "3.5.0"
mypy = "1.13.0"
ruff = "0.8.3"
[tool.black]
line-length = 88
target-version = ["py38"]
skip-string-normalization = true
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.pytest_cache
| \.venv*
| external
)/
'''
[tool.ruff]
extend-exclude = [".venv*"]
line-length = 88
target-version = "py38"
[tool.ruff.lint]
select = [
"ANN", "B", "B9", "BLE", "C", "C4", "E", "EXE", "F", "G",
"I", "I002", "ISC", "INP", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "Q", "RET",
"RSE", "S", "SIM", "T10", "T20", "TCH", "TID251", "TRY", "UP", "W", "RUF"
]
ignore = ["ANN401", "PLR0913", "PLR2004", "TRY003", "RUF022", "RUF023"]
[tool.ruff.lint.per-file-ignores]
"*.pyi" = ["E501", "E701", "E741", "F401", "F403", "F405", "F811"]
"tests/*.py" = ["PGH003", "PLR0912", "S101"]
[tool.ruff.lint.isort]
extra-standard-library = ["typing_extensions", "_types", "_typeshed"]
known-first-party = ["asyncpg"]
combine-as-imports = true
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
parametrize-names-type = "csv"
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.mypy]
python_version = "3.8"
incremental = true
strict = true
[tool.pyright]
include = ["asyncpg-stubs", "tests"]
venvPath = "."
venv = ".venv"
pythonVersion = "3.8"
reportUnnecessaryTypeIgnoreComment = "warning"
typeCheckingMode = "strict"
reportPrivateUsage = "none"
reportUnusedImport = "none"
reportUnusedVariable = "none"
reportImportCycles = "none"
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"