-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
164 lines (145 loc) · 4.72 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
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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "clickhouse-tools"
version = "1.0.0"
license = "MIT"
description = "clickhouse-tools is a set of tools for administration and diagnostics of ClickHouse DBMS."
authors = [
"Alexander Burmak <[email protected]>",
"Dmitry Starov <[email protected]>",
"Anton Ivashkin <[email protected]>",
"Grigory Pervakov <[email protected]>",
"Petr Nuzhnov <[email protected]>",
"Egor Medvedev <[email protected]>",
"Aleksei Filatov <[email protected]>",
"Evgeny Dyukov <[email protected]>",
"Evgeny Strizhnev <[email protected]>",
"Vadim Volodin <[email protected]>",
"Anton Chaporgin <[email protected]>",
"Evgenii Kopanev <[email protected]>",
"Mikhail Kot <[email protected]>",
]
maintainers = [
"Alexander Burmak <[email protected]>",
"Dmitry Starov <[email protected]>",
"Anton Ivashkin <[email protected]>",
"Grigory Pervakov <[email protected]>",
"Petr Nuzhnov <[email protected]>",
"Egor Medvedev <[email protected]>",
"Aleksei Filatov <[email protected]>",
"Evgenii Kopanev <[email protected]>",
"Mikhail Kot <[email protected]>",
]
readme = "README.md"
homepage = "https://github.com/yandex/ch-tools"
repository = "https://github.com/yandex/ch-tools"
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.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Database",
"Typing :: Typed",
]
packages = [
{ include = "ch_tools" },
]
include = ["resources/"]
[tool.poetry.dependencies]
python = "^3.6.2"
boto3 = "~1.23.10"
click = "~8.0.4"
cloup = "*"
deepdiff = "<6.4.0" # 6.4.0 version contains a bug https://github.com/seperman/deepdiff/issues/415
dnspython = "*"
file_read_backwards = "*"
humanfriendly = "*"
jinja2 = "*"
kazoo = "*"
lxml = "*"
psutil = "*"
pygments = "*"
pyopenssl = "*"
python-dateutil = "*"
pyyaml = "<5.4"
requests = "<2.30.0"
tabulate = "*"
tenacity = "*"
termcolor = "*"
tqdm = "*"
typing-extensions = "~4.1.1"
xmltodict = "*"
loguru = "*"
cffi = { version = "1.16.0", python = ">=3.12" }
setuptools = { version = "*", python = ">=3.12" }
[tool.poetry.dev-dependencies]
# TODO: use groups in a modern version of poetry
# tests
behave = "*"
docker = "*"
docker-compose = "*"
pyhamcrest = "*"
pytest = "*"
pyfakefs = [
{ version = "*", python = "<3.12" },
{ version = "5.5.0", python = ">=3.12" }
]
# lint
black = { version = "^22.0", python = ">=3.10" }
ruff = { version = "*", python = ">=3.10" }
isort = { version = "^5.0", extras = ["pyproject"], python = ">=3.10" }
mypy = { version = "~1.5", python = ">=3.10" }
pylint = { version = "^3.1", python = ">=3.10" }
types-pyOpenSSL = { version = "*", python = ">=3.10" }
types-python-dateutil = { version = "*", python = ">=3.10" }
types-pyyaml = { version = "*", python = ">=3.10" }
types-requests = { version = "*", python = ">=3.10" }
types-setuptools = { version = "*", python = ">=3.10" }
types-tabulate = { version = "*", python = ">=3.10" }
codespell = { version = "*", python = ">=3.10" }
tomli = { version = "*", python = ">=3.10" }
[tool.poetry.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"
[tool.isort]
profile = "black"
[tool.ruff]
lint.select = ["E", "F", "W", "A"]
lint.ignore = [
"A003", # "Class attribute is shadowing a Python builtin"
"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.mypy]
ignore_missing_imports = true
disallow_incomplete_defs = true
check_untyped_defs = true
exclude = ['tests/staging']
[tool.codespell]
skip = 'poetry.lock'
ignore-words-list = 'sav,fpr' # `fpr` is used in parsing GPG output