forked from yandex/ch-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
201 lines (179 loc) · 5.58 KB
/
pyproject.toml
File metadata and controls
201 lines (179 loc) · 5.58 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
[project]
name = "clickhouse-tools"
description = "clickhouse-tools is a set of tools for administration and diagnostics of ClickHouse DBMS."
license = "MIT"
readme = "README.md"
homepage = "https://github.com/yandex/ch-tools"
repository = "https://github.com/yandex/ch-tools"
dynamic = ["version"]
requires-python = ">=3.9"
keywords = [
"clickhouse",
"database",
"monitoring",
"diagnostics",
"administration",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX :: BSD",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Environment :: Console",
"Programming Language :: Python :: 3",
"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 :: Database",
"Typing :: Typed",
]
authors = [
{ name = "Alexander Burmak", email = "alex-burmak@yandex-team.ru" },
{ name = "Dmitry Starov", email = "dstaroff@yandex-team.ru" },
{ name = "Anton Ivashkin", email = "iantonspb@yandex-team.ru" },
{ name = "Grigorii Pervakov", email = "pervakovg@yandex-team.ru" },
{ name = "Petr Nuzhnov", email = "petrnuzhnov@yandex-team.ru" },
{ name = "Egor Medvedev", email = "egor-medvedev@yandex-team.ru" },
{ name = "Aleksei Filatov", email = "alexfvk@yandex-team.ru" },
{ name = "Evgeny Dyukov", email = "secwall@yandex-team.ru" },
{ name = "Evgeny Strizhnev", email = "estrizhnev@yandex-team.ru" },
{ name = "Vadim Volodin", email = "vadim-volodin@yandex-team.ru" },
{ name = "Anton Chaporgin", email = "chapson@yandex-team.ru" },
{ name = "Evgenii Kopanev", email = "ekopanev@yandex-team.ru" },
{ name = "Mikhail Kot", email = "myrrc@yandex-team.ru" },
{ name = "Mikhail Burdukov", email = "mburdukov@yandex-team.ru" },
{ name = "Kirill Garbar", email = "kirillgarbar@yandex-team.ru" },
{ name = "Konstantin Morozov", email = "kst-morozov@yandex-team.ru" },
]
maintainers = [
{ name = "Alexander Burmak", email = "alex-burmak@yandex-team.ru" },
{ name = "Egor Medvedev", email = "egor-medvedev@yandex-team.ru" },
{ name = "Aleksei Filatov", email = "alexfvk@yandex-team.ru" },
{ name = "Mikhail Burdukov", email = "mburdukov@yandex-team.ru" },
{ name = "Kirill Garbar", email = "kirillgarbar@yandex-team.ru" },
{ name = "Konstantin Morozov", email = "kst-morozov@yandex-team.ru" },
]
dependencies = [
"boto3 >= 1.24, < 1.36",
"click >= 8.1, < 8.2",
"cloup",
"deepdiff >= 8.0",
"dnspython",
"file_read_backwards",
"humanfriendly",
"jinja2",
"kazoo",
"lxml",
"packaging",
"psutil",
"pygments",
"pyopenssl >= 25.0",
"python-dateutil",
"pyyaml >= 5.4",
"requests >= 2.20",
"tabulate",
"tenacity",
"termcolor",
"tqdm",
"xmltodict",
"loguru",
]
[dependency-groups]
dev = [
"behave",
"docker >= 7.1",
"pyhamcrest",
"pytest",
"pyfakefs",
"black >= 25.1",
"ruff",
"isort >= 6.0",
"mypy >= 1.17",
"pylint >= 3.0, < 4.0",
"types-kazoo",
"types-python-dateutil",
"types-pyyaml",
"types-requests",
"types-tabulate",
"codespell",
"tomli",
]
[project.scripts]
chadmin = "ch_tools.chadmin.chadmin_cli:main"
ch-monitoring = "ch_tools.monrun_checks.main:main"
keeper-monitoring = "ch_tools.monrun_checks_keeper.main:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "ch_tools/version.txt"
pattern = "(?P<version>.+)"
[tool.hatch.build]
ignore-vcs = true # to prevent excluding generated files
only-include = ["ch_tools", "resources"]
[tool.isort]
profile = "black"
[tool.codespell]
ignore-words-list = 'sav,fpr' # `fpr` is used in parsing GPG output
[tool.ruff]
lint.select = ["E", "F", "W", "A"]
lint.ignore = [
"A003", # "Class attribute is shadowing a Python builtin"
"A005", # Module `logging` shadows a Python standard-library module
"E402", # "Module level import not at top of file", duplicate corresponding pylint check
"E501", # "Line too long"
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # "Unused import"
[tool.pylint.main]
py-version = "3.9" # Minimum Python version to use for version dependent checks
jobs = 4 # Use multiple processes to speed up Pylint
ignored-modules = [ # List of module names for which member attributes should not be checked
"behave",
"requests.packages",
]
[tool.pylint."messages control"]
disable = [
"broad-exception-caught",
"consider-using-max-builtin",
"duplicate-code",
"fixme",
"inconsistent-return-statements",
"line-too-long",
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"not-callable",
"raise-missing-from",
"too-few-public-methods",
"unnecessary-pass",
"use-dict-literal",
]
[tool.pylint.basic]
include-naming-hint = true
[tool.pylint.design]
max-args = 25
max-positional-arguments = 25
max-locals = 25
max-branches = 16
max-statements = 65
max-returns = 8
max-attributes = 10
max-public-methods = 30
[tool.pylint.refactoring]
max-nested-blocks = 7
[tool.pylint.reports]
score = false
[tool.mypy]
python_version = 3.9
ignore_missing_imports = true
disallow_incomplete_defs = true
check_untyped_defs = true
exclude = ['tests/staging']
disallow_untyped_defs = true