-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (72 loc) · 2.34 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (72 loc) · 2.34 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "redfish-python-sdk"
version = "1.2.3"
description = "A Python SDK for interacting with Redfish-compliant BMC endpoints"
requires-python = ">=3.9"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{name = "RedNote Infrastructure"},
]
keywords = ["redfish", "bmc", "ipmi", "server", "oob"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"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 :: System :: Hardware",
"Topic :: System :: Networking",
"Topic :: System :: Systems Administration",
"Typing :: Typed",
]
dependencies = [
"requests>=2.31.0",
"pydantic>=2.5.0",
"urllib3>=2.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"ruff>=0.4.0",
]
[project.urls]
Homepage = "https://github.com/rednote-infra/redfish-python-sdk"
Repository = "https://github.com/rednote-infra/redfish-python-sdk"
Issues = "https://github.com/rednote-infra/redfish-python-sdk/issues"
Changelog = "https://github.com/rednote-infra/redfish-python-sdk/blob/main/CHANGELOG.md"
[tool.setuptools.packages.find]
include = ["redfish_sdk*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
target-version = "py39"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
]
ignore = [
"E501", # 行长由 formatter 控制
"UP006", # Use `list` instead of `List` — 保持 typing.List 以兼容 Python 3.9 运行时
"UP007", # Use `X | Y` instead of `Union[X, Y]` — 同上
"UP035", # `typing.List` is deprecated — 同上
"UP045", # Use `X | None` instead of `Optional[X]` — 同上,pydantic v2 在 3.9 运行时需要 Optional
"SIM105", # Use contextlib.suppress — 可读性偏好
]
[tool.ruff.lint.isort]
known-first-party = ["redfish_sdk"]