@@ -9,18 +9,19 @@ exclude = [".git", ".venv", ".mypy_cache", ".tox", "__pycache__"]
99
1010[tool .ruff .lint .isort ]
1111order-by-type = true
12- known-third-party = [" ocp_resources" , " ocp_utilities" , " timeout_sampler" , " pyhelper_utils" ]
12+ known-third-party = [
13+ " ocp_resources" ,
14+ " ocp_utilities" ,
15+ " timeout_sampler" ,
16+ " pyhelper_utils" ,
17+ ]
1318
1419[tool .mypy ]
1520warn_unused_configs = true
1621warn_redundant_casts = true
1722
1823[[tool .mypy .overrides ]]
19- module = [
20- " libs.*" ,
21- " tests.network.libs.*" ,
22- " tests.network.localnet.*"
23- ]
24+ module = [" libs.*" , " tests.network.libs.*" , " tests.network.localnet.*" ]
2425disallow_untyped_calls = true
2526disallow_untyped_defs = true
2627disallow_incomplete_defs = true
@@ -78,17 +79,18 @@ dependencies = [
7879 " marshmallow~=3.26.1" ,
7980 " python-simple-logger>=2.0.13" ,
8081 " pytest-html>=4.1.1" ,
82+ " openshift-python-wrapper>=11.0.93" ,
8183]
8284
8385[project .optional-dependencies ]
8486# Dependencies for utilities unit testing
8587utilities-test = [
86- " pytest>=8.3.3" ,
87- " pytest-cov>=4.1.0" ,
88- " pytest-mock>=3.12.0" ,
89- " pytest-xdist>=3.5.0" ,
90- " pytest-timeout>=2.2.0" ,
91- " pytest-watch>=4.2.0" ,
88+ " pytest>=8.3.3" ,
89+ " pytest-cov>=4.1.0" ,
90+ " pytest-mock>=3.12.0" ,
91+ " pytest-xdist>=3.5.0" ,
92+ " pytest-timeout>=2.2.0" ,
93+ " pytest-watch>=4.2.0" ,
9294]
9395
9496[tool .hatch .build .targets .wheel ]
@@ -123,33 +125,33 @@ addopts = """
123125[tool .coverage .run ]
124126source = [" utilities" ]
125127omit = [
126- " */tests/*" ,
127- " */__pycache__/*" ,
128- " */manifests/*" ,
129- " *.pyc" ,
130- " */test_*.py" ,
131- " __init__.py" ,
132- " utilities/unittests/conftest.py" ,
133- # TODO: Add coverage to these large modules when individual fixes are needed
134- " utilities/hco.py" ,
135- " utilities/infra.py" ,
136- " utilities/network.py" ,
137- " utilities/operator.py" ,
138- " utilities/storage.py" ,
139- " utilities/virt.py" ,
128+ " */tests/*" ,
129+ " */__pycache__/*" ,
130+ " */manifests/*" ,
131+ " *.pyc" ,
132+ " */test_*.py" ,
133+ " __init__.py" ,
134+ " utilities/unittests/conftest.py" ,
135+ # TODO: Add coverage to these large modules when individual fixes are needed
136+ " utilities/hco.py" ,
137+ " utilities/infra.py" ,
138+ " utilities/network.py" ,
139+ " utilities/operator.py" ,
140+ " utilities/storage.py" ,
141+ " utilities/virt.py" ,
140142]
141143
142144[tool .coverage .report ]
143145precision = 2
144146exclude_lines = [
145- " pragma: no cover" ,
146- " def __repr__" ,
147- " if TYPE_CHECKING:" ,
148- " raise AssertionError" ,
149- " raise NotImplementedError" ,
150- " if __name__ == .__main__.:" ,
151- " pass" ,
152- " except ImportError:" ,
147+ " pragma: no cover" ,
148+ " def __repr__" ,
149+ " if TYPE_CHECKING:" ,
150+ " raise AssertionError" ,
151+ " raise NotImplementedError" ,
152+ " if __name__ == .__main__.:" ,
153+ " pass" ,
154+ " except ImportError:" ,
153155]
154156show_missing = true
155157skip_covered = false
0 commit comments