-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
128 lines (116 loc) · 3.39 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[project]
name = "taskiq-pg"
dynamic = ["version"]
description = "AsyncPG and PostgreSQL integration for taskiq"
authors = [{ name = "Oliver Lambson", email = "[email protected]" }]
readme = "README.md"
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
keywords = [
"taskiq",
"tasks",
"distributed",
"async",
"postgresql",
"result_backend",
"asyncpg",
]
requires-python = ">=3.9"
dependencies = ["asyncpg >=0.30.0", "taskiq>=0.11.10"]
[project.urls]
Repository = "https://github.com/karoo-ca/taskiq-pg"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "taskiq_pg/__init__.py"
[tool.hatch.build.targets.sdist]
include = ["taskiq_pg"]
[dependency-groups]
dev = [
"mypy>=1.1.1",
"yesqa>=1.4.0",
"pytest>=7.2.2",
"pytest-xdist>=3.2.1",
"anyio>=3.6.2",
"pytest-cov>=4.0.0",
"wemake-python-styleguide>=0.18.0",
"ruff>=0.3.4",
"asyncpg-stubs>=0.30.0",
]
[tool.mypy]
strict = true
pretty = true
show_error_codes = true
exclude = ["examples"]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
# List of enabled rulsets.
# See https://docs.astral.sh/ruff/rules/ for more information.
select = [
"E", # Error
"F", # Pyflakes
"W", # Pycodestyle
"C90", # McCabe complexity
"I", # Isort
"N", # pep8-naming
"D", # Pydocstyle
"ANN", # Pytype annotations
"S", # Bandit
"B", # Bugbear
"COM", # Commas
"C4", # Comprehensions
"ISC", # Implicit string concat
"PIE", # Unnecessary code
"T20", # Catch prints
"PYI", # validate pyi files
"Q", # Checks for quotes
"RSE", # Checks raise statements
"RET", # Checks return statements
"SLF", # Self checks
"SIM", # Simplificator
"PTH", # Pathlib checks
"ERA", # Checks for commented out code
"PL", # PyLint checks
"RUF", # Specific to Ruff checks
]
ignore = [
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D212", # Multi-line docstring summary should start at the first line
"D401", # First line should be in imperative mood
"D104", # Missing docstring in public package
"D100", # Missing docstring in public module
"ANN401", # typing.Any are disallowed in `**kwargs
"PLR0913", # Too many arguments for function call
"D106", # Missing docstring in public nested class
"COM812", # Missing trailing comma (formatter handles)
"ISC001", # Single line implicit string concatenation (formatter handles)
]
exclude = [".venv/"]
mccabe = { max-complexity = 10 }
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # Use of assert detected
"S301", # Use of pickle detected
"D103", # Missing docstring in public function
"SLF001", # Private member accessed
"S311", # Standard pseudo-random generators are not suitable for security/cryptographic purposes
"D101", # Missing docstring in public class
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
ignore-decorators = ["typing.overload"]
[tool.ruff.lint.pylint]
allow-magic-value-types = ["int", "str", "float"]
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["taskiq_dependencies.Depends", "taskiq.TaskiqDepends"]