-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
138 lines (121 loc) · 3.26 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
129
130
131
132
133
134
135
136
137
138
[tool.poetry]
name = "types-confluent-kafka"
version = "1.2.2"
description = ""
authors = ["benbenbang <bn@bitbrew.dev>"]
license = "Apache-2.0 license"
readme = "README.md"
repository = "https://github.com/benbenbang/types-confluent-kafka"
packages = [{ include = "confluent_kafka-stubs" }]
exclude = ["confluent_kafka-stubs/__init__.py"]
keywords = [
"types",
"typings",
"stubs",
"confluent_kafka",
"mypy",
"lsp",
"completion",
"type hints",
"type checking",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[tool.poetry.dependencies]
python = ">= 3.9,<= 3.13"
[tool.poetry.group.dev.dependencies]
confluent-kafka = { extras = ["avro"], version = "^2.5.0" }
types-requests = "^2.31.0.2"
pyright = "^1.1.384"
mypy = "^1.11.2"
[tool.poetry.group.lint.dependencies]
ruff = "^0.6.9"
pylint = "^2.17.5"
pre-commit = "^3.3.3"
[tool.poetry.group.publish.dependencies]
twine = "^4.0.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
indent-width = 4
include = ["confluent_kafka-stubs", "*.pyi"]
exclude = [
".venv",
".cache",
".mypy_cache",
".env",
"build",
"dist",
"*.ipynb",
"confluent-kafka-python",
"tests",
]
[tool.ruff.lint]
ignore = ["F821", "F822"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pylint.messages_control]
disable = ["all"]
enable = [
"consider-using-f-string",
"cyclic-import",
"deprecated-module",
"f-string-without-interpolation",
"import-error",
"import-self",
"undefined-variable",
"undefined-all-variable",
"unused-format-string-argument",
"unused-format-string-key",
"unused-import",
# This might be unused but a mandatory signature in airflow runtime
# "unused-argument",
"unused-wildcard-import",
"unused-variable",
"used-before-assignment",
"use-list-literal",
"raise-missing-from",
"simplifiable-condition",
"simplify-boolean-expression",
"super-with-arguments",
"wrong-spelling-in-comment",
"wrong-spelling-in-docstring",
]
[tool.pylint.format]
max-line-length = 120
[tool.pytest.ini_options]
addopts = '--basetemp=/tmp/pytest'
# switch on `-s` for deep debuging
# addopts = '-s --basetemp=/tmp/pytest'
filterwarnings = []
testpaths = []
markers = []
[tool.mypy]
ignore_missing_imports = true
warn_unreachable = true
enable_incomplete_feature = "Unpack"
disable_error_code = ["attr-defined"]
[tool.pyright]
include = ["confluent_kafka-stubs"]
exclude = ["**/__pycache__", "tests/**"]
defineConstant = { DEBUG = true }
stubPath = "confluent_kafka-stubs"
reportMissingImports = "warning"
reportIncompatibleMethodOverride = "none"
reportAttributeAccessIssue = "none"