Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (118 loc) · 3.53 KB
/
Copy pathpyproject.toml
File metadata and controls
134 lines (118 loc) · 3.53 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
[project]
name = "robotframework-radkit"
version = "0.1.0"
description = "A Robot Framework library for Cisco RADKit, providing keywords for device interaction via RADKit services"
license = { text = "MPL-2.0" }
readme = "README.md"
requires-python = ">=3.10"
authors = [
{ name = "Oliver Boehmer", email = "oboehmer@cisco.com" },
]
maintainers = [
{ name = "Oliver Boehmer", email = "oboehmer@cisco.com" },
]
keywords = ["robot", "robotframework", "testing", "radkit", "cisco", "network", "automation"]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Robot Framework",
"Framework :: Robot Framework :: Library",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Quality Assurance",
"Topic :: System :: Networking",
]
dependencies = [
"robotframework>=5.0",
"cisco-radkit-client>=1.9.0; python_version < '3.14'",
"cisco-radkit-client>=2.0.0; python_version >= '3.14'",
]
[project.urls]
homepage = "https://github.com/Cisco-RADKit/robotframework-radkit"
repository = "https://github.com/Cisco-RADKit/robotframework-radkit"
documentation = "https://github.com/Cisco-RADKit/robotframework-radkit"
issues = "https://github.com/Cisco-RADKit/robotframework-radkit/issues"
[project.optional-dependencies]
genie = [
"cisco-radkit-genie>=1.9.0; python_version < '3.14'",
"cisco-radkit-genie>=2.0.0; python_version >= '3.14'",
]
dev = [
"bandit[toml]>=1.8.6",
"mypy>=1.17.1",
"pre-commit>=4.3.0",
"pytest>=8.4.2",
"pytest-cov>=4.0.0",
"pytest-mock>=3.15.0",
"ruff>=0.12.12",
"robotframework>=5.0",
]
[[tool.uv.index]]
name = "radkit"
url = "https://radkit.cisco.com/pip"
[tool.uv.pip]
extra-index-url = ["https://radkit.cisco.com/pip"]
[tool.coverage.run]
source_pkgs = ["RADKitLibrary"]
[tool.coverage.paths]
source = [
"RADKitLibrary",
"*/site-packages/RADKitLibrary",
]
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "@abstract", "except ImportError:"]
[tool.ruff]
target-version = "py310"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.lint.isort]
known-first-party = ["RADKitLibrary"]
[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B101"]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = false
disallow_untyped_defs = true
ignore_errors = false
ignore_missing_imports = true
python_version = "3.10"
strict_optional = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = false
warn_unreachable = true
show_error_context = true
[tool.pytest.ini_options]
markers = ["unit", "integration"]
testpaths = ["tests"]
addopts = "--ignore=tests/smoke"
[tool.hatch.build.targets.wheel]
packages = ["RADKitLibrary"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"