-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (99 loc) · 2.81 KB
/
pyproject.toml
File metadata and controls
108 lines (99 loc) · 2.81 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
[project]
name = "taskiq-aio-kafka"
description = "Kafka broker for taskiq"
authors = [
{name = "Taskiq team", email = "taskiq@no-reply.com"}
]
maintainers = [
{name = "Taskiq team", email = "taskiq@no-reply.com"}
]
version = "0.2.1"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Typing :: Typed",
"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",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: System :: Networking",
"Development Status :: 3 - Alpha",
]
homepage = "https://github.com/taskiq-python/taskiq-aio-kafka"
repository = "https://github.com/taskiq-python/taskiq-aio-kafka"
keywords = ["taskiq", "tasks", "distributed", "async", "kafka", "aiokafka"]
requires-python = ">=3.10,<4"
dependencies = [
"taskiq>=0.11.20,<1",
"aiokafka>=0.10.0",
"kafka-python>=2.0.2",
]
[dependency-groups]
dev = [
"pre-commit>=4.4.0",
# lint
"ruff>=0.14.5",
"black>=25.11.0",
# type check
"mypy>=1.18.2",
# tests
"pytest>=9.0.1",
"pytest-cov>=7.0.0",
"coverage>=7.11.3",
"pytest-xdist[psutil]>=3.8.0",
"anyio>=4.11.0",
]
[build-system]
requires = ["uv_build>=0.9.9,<0.10.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "taskiq_aio_kafka"
module-root = ""
[tool.pytest.ini_options]
log_level = 'INFO'
anyio_mode = "auto"
[tool.mypy]
python_version = "3.10"
strict = true
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]
target-version="py310"
lint.select = [
"ALL",
]
lint.ignore = [
"ANN401", # Missing type annotation
"D100", # Missing docstring in public module
"D401", # First line should be in imperative mood
"FBT001", # Boolean-typed positional argument in function definition
"FBT002", # Boolean default positional argument in function definition
"EM101", # Exception must not use a string literal, assign to variable first
"TRY003", # Avoid specifying long messages outside the exception class
]
lint.mccabe = { max-complexity = 10 }
exclude = [".venv/"]
line-length = 88
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # Use of assert detected
"SLF001", # Private member accessed
"RET503", # Missing explicit `return`
"INP001", # Part of an implicit namespace package
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
ignore-decorators = ["typing.overload"]