-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (125 loc) · 3.08 KB
/
pyproject.toml
File metadata and controls
138 lines (125 loc) · 3.08 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
[project]
name = "ocr_openstack_plugin"
version = "0.1.4"
description = "Openstack handler that is being used to deploy and manage resources for Open Cyber Range"
authors = [{ name = "Md Mujahid Islam Peal", email = "developers@ncr.ntnu.no" }]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"asyncio>=3.4.3",
"google>=3.0.0",
"google-cloud>=0.34.0",
"google-common>=0.0.1",
"grpcio>=1.67.1",
"grpcio-status>=1.67.1",
"grpcio-tools>=1.67.1",
"ipcalc>=1.99.0",
"openstacksdk>=4.2.0",
"paramiko>=3.5.0",
"protobuf-gen>=0.0.4",
"protobuf3>=0.2.1",
"python-dotenv>=1.0.1",
"redis>=5.2.0",
"redlock>=1.2.0",
"toml>=0.10.2",
"grpcio-testing>=1.67.1",
"grpcio-health-checking>=1.67.1",
"protobuf>=5.28.3",
"markdown>=3.7",
"bs4>=0.0.2",
"libvirt-python",
"munch>=4.0.0",
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://github.com/Open-Cyber-Range"
[tool.uv]
package = true
[tool.uv.sources]
libvirt-python = { git = "https://github.com/libvirt/libvirt-python.git", branch = "master" }
[dependency-groups]
dev = [
"coverage>=7.6.4",
"pre-commit>=4.0.1",
"pylint-protobuf>=0.22.0",
"pytest>=8.3.3",
"pytest-cov>=6.0.0",
"pytest-depends>=1.0.1",
"pytest-lazy-fixture>=0.6.3",
"pytest-mock>=3.14.0",
"ruff>=0.7.2",
]
[project.scripts]
machiner = "ocr_openstack_plugin:start_machiner"
templater = "ocr_openstack_plugin:start_templater"
executor = "ocr_openstack_plugin:start_executor"
switcher = "ocr_openstack_plugin:start_switcher"
general = "ocr_openstack_plugin:start_general"
handlers = "ocr_openstack_plugin:main"
[tool.pytest.ini_options]
addopts = "-svv"
testpaths = ["tests"]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::pytest.PytestUnknownMarkWarning"
]
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
ignore = ["E501"]
fixable = ["ALL"]
unfixable = ["B"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.lint.mccabe]
max-complexity = 18
[tool.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.lint.isort]
force-wrap-aliases = true
combine-as-imports = true
force-sort-within-sections = true
lines-after-imports = 1
order-by-type = true
relative-imports-order = "closest-to-furthest"
single-line-exclusions = ["os", "json", "pytz", "asyncio"]