-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (125 loc) · 3.6 KB
/
Copy pathpyproject.toml
File metadata and controls
138 lines (125 loc) · 3.6 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
[build-system]
requires = ["setuptools>=68.0", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"
[project]
name = "kronos-openstack"
dynamic = ["version"]
description = "PromQL-driven VM placement engine for OpenStack"
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.12"
authors = [
{name = "Luca Del Monte", email = "luca.delmonte5@gmail.com"},
{name = "Michele Palazzi", email = "sysdadmin@m1k.cloud"},
]
keywords = [
"openstack",
"nova",
"prometheus",
"live-migration",
"scheduler",
"placement",
"rebalancing",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: OpenStack",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"oslo.config>=9.0.0",
"oslo.log>=6.0.0",
"oslo.messaging>=14.0.0",
"openstacksdk>=4.0",
"pydantic>=2.6,<3",
"PyYAML>=6.0",
"requests>=2.31",
"tenacity>=8.2",
"pytimeparse2>=1.7",
"keystoneauth1>=5.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"responses>=0.25",
"ruff>=0.4",
"mypy>=1.10",
"types-PyYAML",
"pyright==1.1.408",
"tox>=4.15",
"build>=1.2",
]
docs = [
"sphinx>=7.0",
"furo>=2024.1.29",
]
[project.urls]
Homepage = "https://github.com/kronos-openstack/kronos"
Repository = "https://github.com/kronos-openstack/kronos"
Issues = "https://github.com/kronos-openstack/kronos/issues"
Documentation = "https://kronos-openstack.readthedocs.io"
[project.scripts]
kronos-engine = "kronos.cmd.engine:main"
kronos-test-config = "kronos.cmd.test_config:main"
kronos-executor = "kronos.cmd.executor:main"
kronos-record = "kronos.cmd.record:main"
kronos-replay = "kronos.cmd.replay:main"
[project.entry-points."oslo.config.opts"]
kronos = "kronos.common.config:list_opts"
[tool.setuptools_scm]
[tool.setuptools.packages.find]
include = ["kronos*"]
[tool.ruff]
target-version = "py312"
line-length = 99
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "RUF"]
[tool.mypy]
python_version = "3.12"
strict = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = [
"oslo_config.*",
"oslo_log.*",
"oslo_messaging.*",
"keystoneauth1.*",
"openstack.*",
"pytimeparse2.*",
"tenacity.*",
"eventlet.*",
]
ignore_missing_imports = true
follow_imports = "skip"
[tool.pyright]
include = ["kronos", "tests"]
pythonVersion = "3.12"
# "basic" rather than "strict": the OpenStack dependencies (oslo.*,
# openstacksdk, keystoneauth1) ship no type stubs, so strict mode
# drowns in reportUnknown* cascades that no annotation on our side can
# fix. mypy --strict covers the strictness budget; pyright covers the
# checks mypy misses. Selected strict-mode rules with real signal are
# enabled individually below.
typeCheckingMode = "basic"
# oslo.*, openstacksdk, keystoneauth1, etc. ship no type stubs; mypy
# already runs with ignore_missing_imports for them (see overrides
# above). Mirror that here instead of per-line ignores.
reportMissingModuleSource = false
reportUnusedImport = "error"
reportUnusedVariable = "error"
reportUnusedClass = "error"
reportUnusedFunction = "error"
reportDuplicateImport = "error"
reportUnnecessaryCast = "error"
reportUnnecessaryContains = "error"
reportUnnecessaryComparison = "error"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short"