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

resolve documentation linting errors

parent 2905c7d1
No related branches found
No related tags found
1 merge request!111Feature/ruff everything party hat emoji
GÉANT Automation Platform
[GSO|gso]
Vereniging
TERMINATE
[[T|t]ERMINATE|terminate]
WFO
Ansible
[Dd]eprovision
......@@ -11,3 +11,4 @@ Dark_fiber
[A|a]ddress
[I|i]ptrunk
[A|a]llocate
PHASE 1
......@@ -243,7 +243,7 @@ def find_host_by_ip(
:type ip_addr: ipaddress.IPv4Address | ipaddress.IPv6Address
"""
conn, _ = _setup_connection()
if ip_addr.version == 4: # noqa: PLR2004, the 4 in IPv4 is well-known and not a "magic value".
if ip_addr.version == 4: # noqa: PLR2004, the 4 in IPv4 is well-known and not a "magic value."
return objects.HostRecord.search(
conn,
ipv4addr=ip_addr,
......
......@@ -21,15 +21,19 @@ from gso.services.subscriptions import get_active_subscriptions_by_field_and_val
class LAGMember(BaseModel):
"""A :term:`LAG` member interface that consists of a name and description."""
"""A :term:`LAG` member interface that consists of a name and description.
TODO: validate interface name
"""
# TODO: validate interface name
interface_name: str
interface_description: str
def __hash__(self) -> int:
"""Calculate the hash based on the interface name and description, so that uniqueness can be determined."""
# TODO: check if this is still needed
"""Calculate the hash based on the interface name and description, so that uniqueness can be determined.
TODO: Check if this is still needed
"""
return hash((self.interface_name, self.interface_description))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment