Skip to content
Snippets Groups Projects
Verified Commit f692b202 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Remove rule S311 from linting

parent a456a1ec
No related branches found
No related tags found
1 merge request!400LSO steps added to the L2c workflows
Pipeline #93225 passed
......@@ -325,8 +325,8 @@ def generate_unique_vc_id(l2c_type: str, max_attempts: int = 100) -> VC_ID | Non
def create_vc_id() -> str:
"""Generate an 8-digit VC_ID starting with '11'."""
if l2c_type == Layer2CircuitType.ETHERNET:
return str(random.randint(30001, 39999)) # noqa: S311
return str(random.randint(6000, 6999)) # noqa: S311
return str(random.randint(30001, 39999))
return str(random.randint(6000, 6999))
for _ in range(max_attempts):
vc_id = create_vc_id()
......
......@@ -292,7 +292,7 @@ def migrate_l3_core_services_to_new_node(subscription_id: UUIDstr, tt_number: TT
},
],
],
countdown=random.choice([2, 3, 4, 5]), # noqa: S311
countdown=random.choice([2, 3, 4, 5]),
)
return {"l3_core_services": l3_core_services}
......@@ -319,7 +319,7 @@ def migrate_l2_circuits_to_new_node(subscription_id: UUIDstr, tt_number: TTNumbe
},
],
],
countdown=random.choice([2, 3, 4, 5]), # noqa: S311
countdown=random.choice([2, 3, 4, 5]),
)
return {"layer2_circuits": layer2_circuits}
......
......@@ -46,6 +46,7 @@ ignore = [
"PLR0913",
"PLR0904",
"PLW1514",
"S311",
]
select = [
"A",
......
......@@ -133,7 +133,7 @@ def access_port_factory(faker, service_binding_port_factory):
):
return AccessPort.new(
subscription_id=uuid4(),
ap_type=ap_type or random.choice(list(APType)), # noqa: S311
ap_type=ap_type or random.choice(list(APType)),
sbp=service_binding_port or service_binding_port_factory(edge_port=edge_port, partner=partner),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment