-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (85 loc) · 2.87 KB
/
pyproject.toml
File metadata and controls
95 lines (85 loc) · 2.87 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "understack-workflows"
version = "0.0.0"
description = "The glue between different systems and services that are run in our Workflows"
authors = [{ name = "Understack Developers" }]
requires-python = "~=3.11.0"
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Environment :: OpenStack",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.11",
"Topic :: System :: Hardware",
"Topic :: System :: Systems Administration",
]
dependencies = [
"pydantic>=2,<3",
"pynautobot>=3,<4",
"python-ironicclient>=5,<6",
"sushy>=5.3.0,<6",
"kubernetes==33.1.0",
"netapp-ontap==9.17.1.0",
"tenacity>=8.0.0",
]
[project.scripts]
bios-settings = "understack_workflows.main.bios_settings:main"
bmc-kube-password = "understack_workflows.main.bmc_display_password:main"
bmc-password = "understack_workflows.main.print_bmc_password:main"
enroll-server = "understack_workflows.main.enroll_server:main"
get-raid-devices = "understack_workflows.main.get_raid_devices:main"
netapp-configure-interfaces = "understack_workflows.main.netapp_configure_net:main"
netapp-create-svm = "understack_workflows.main.netapp_create_svm:main"
openstack-oslo-event = "understack_workflows.main.openstack_oslo_event:main"
sync-keystone = "understack_workflows.main.sync_keystone:main"
sync-network-segment-range = "understack_workflows.main.sync_ucvni_group_range:main"
undersync-switch = "understack_workflows.main.undersync_switch:main"
[dependency-groups]
test = [
"pytest>=9,<10",
"pytest-github-actions-annotate-failures",
"pytest-cov>=7,<8",
"pytest-mock>=3.14.0,<4",
"pytest-lazy-fixtures>=1.1.1,<2",
"requests-mock>=1.12.1,<2",
]
[tool.uv]
default-groups = ["test"]
[tool.hatch.build.targets.sdist]
include = ["understack_workflows"]
[tool.hatch.build.targets.wheel]
include = ["understack_workflows"]
[tool.peotry.group.test]
optional = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra --cov=understack_workflows"
testpaths = [
"tests",
]
filterwarnings = [
# sushy
"ignore:pkg_resources is deprecated as an API.:DeprecationWarning",
# netapp
"ignore:.*Number` field should not be instantiated.*"
]
[tool.ruff]
# use our default and override anything we need specifically
extend = "../pyproject.toml"
target-version = "py310"
[tool.ruff.lint.per-file-ignores]
"tests/test_nautobot_event_parser.py" = ["E501"]
"tests/test_bmc_credentials.py" = ["B017"]
"tests/**/*.py" = [
"S101", # allow 'assert' for pytest
"S105", # allow hardcoded passwords for testing
"S106", # allow hardcoded passwords for testing
]
"understack_workflows/main/bmc_display_password.py" = [
"S607", # allow the kubectl call
]