Skip to content

Commit a619e34

Browse files
authored
Update test manifests and pre-commit config (#2576)
- Update test manifest files for various resources (APIServer, ConfigMap, DNS, Deployment, etc.) - Update pre-commit configuration - Update test_class_generator.py with strict zip parameter
1 parent a5e2d4b commit a619e34

File tree

19 files changed

+34
-19
lines changed

19 files changed

+34
-19
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ci:
1010

1111
repos:
1212
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: "v6.0.0"
13+
rev: v6.0.0
1414
hooks:
1515
- id: check-merge-conflict
1616
- id: debug-statements
@@ -23,7 +23,7 @@ repos:
2323
- id: check-toml
2424

2525
- repo: https://github.com/PyCQA/flake8
26-
rev: "7.3.0"
26+
rev: 7.3.0
2727
hooks:
2828
- id: flake8
2929
args: [--config=.flake8]
@@ -45,13 +45,13 @@ repos:
4545
]
4646

4747
- repo: https://github.com/astral-sh/ruff-pre-commit
48-
rev: v0.14.3
48+
rev: v0.14.5
4949
hooks:
5050
- id: ruff
5151
- id: ruff-format
5252

5353
- repo: https://github.com/gitleaks/gitleaks
54-
rev: v8.28.0
54+
rev: v8.29.0
5555
hooks:
5656
- id: gitleaks
5757

class_generator/tests/manifests/APIServer/api_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def __init__(
7272
self.tls_security_profile = tls_security_profile
7373

7474
def to_dict(self) -> None:
75+
7576
super().to_dict()
7677

7778
if not self.kind_dict and not self.yaml_file:

class_generator/tests/manifests/ConfigMap/config_map.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def __init__(
4848
self.immutable = immutable
4949

5050
def to_dict(self) -> None:
51+
5152
super().to_dict()
5253

5354
if not self.kind_dict and not self.yaml_file:

class_generator/tests/manifests/DNS/dns_config_openshift_io.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def __init__(
5555
self.public_zone = public_zone
5656

5757
def to_dict(self) -> None:
58+
5859
super().to_dict()
5960

6061
if not self.kind_dict and not self.yaml_file:

class_generator/tests/manifests/DNS/dns_operator_openshift_io.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def __init__(
9494
self.upstream_resolvers = upstream_resolvers
9595

9696
def to_dict(self) -> None:
97+
9798
super().to_dict()
9899

99100
if not self.kind_dict and not self.yaml_file:

class_generator/tests/manifests/Deployment/deployment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ def __init__(
280280
self.template = template
281281

282282
def to_dict(self) -> None:
283+
283284
super().to_dict()
284285

285286
if not self.kind_dict and not self.yaml_file:

class_generator/tests/manifests/ImageContentSourcePolicy/image_content_source_policy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def __init__(
4949
self.repository_digest_mirrors = repository_digest_mirrors
5050

5151
def to_dict(self) -> None:
52+
5253
super().to_dict()
5354

5455
if not self.kind_dict and not self.yaml_file:

class_generator/tests/manifests/Ingress/ingress_config_openshift_io.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def __init__(
9393
self.required_hsts_policies = required_hsts_policies
9494

9595
def to_dict(self) -> None:
96+
9697
super().to_dict()
9798

9899
if not self.kind_dict and not self.yaml_file:

class_generator/tests/manifests/Ingress/ingress_networking_k8s_io.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def __init__(
4242
self.tls = tls
4343

4444
def to_dict(self) -> None:
45+
4546
super().to_dict()
4647

4748
if not self.kind_dict and not self.yaml_file:

class_generator/tests/manifests/Machine/machine.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def __init__(
6969
self.taints = taints
7070

7171
def to_dict(self) -> None:
72+
7273
super().to_dict()
7374

7475
if not self.kind_dict and not self.yaml_file:

0 commit comments

Comments
 (0)