Final lint pass

This commit is contained in:
zandercymatics 2023-11-09 11:42:38 -07:00
parent fef39c4cbe
commit b6f3b7a1e0
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 4 additions and 4 deletions

View file

@ -460,7 +460,6 @@ class Command(BaseCommand):
logger.info("Reading domain-contacts data file %s", domain_contacts_filename) logger.info("Reading domain-contacts data file %s", domain_contacts_filename)
with open(domain_contacts_filename, "r") as domain_contacts_file: with open(domain_contacts_filename, "r") as domain_contacts_file:
for row in csv.reader(domain_contacts_file, delimiter=sep): for row in csv.reader(domain_contacts_file, delimiter=sep):
# TerminalHelper.printProgressBar(total_rows_parsed, total_lines)
total_rows_parsed += 1 total_rows_parsed += 1
# fields are just domain, userid, role # fields are just domain, userid, role

View file

@ -1,6 +1,7 @@
import logging import logging
import argparse import argparse
import sys import sys
from typing import Tuple
from django_fsm import TransitionNotAllowed # type: ignore from django_fsm import TransitionNotAllowed # type: ignore
@ -161,7 +162,7 @@ class Command(BaseCommand):
# ====================================================== # ======================================================
def update_or_create_domain( def update_or_create_domain(
self, transition_domain: TransitionDomain, debug_on: bool self, transition_domain: TransitionDomain, debug_on: bool
) -> (Domain, bool): ) -> Tuple[Domain, bool]:
"""Given a transition domain, either finds & updates an existing """Given a transition domain, either finds & updates an existing
corresponding domain, or creates a new corresponding domain in corresponding domain, or creates a new corresponding domain in
the Domain table. the Domain table.
@ -445,7 +446,7 @@ class Command(BaseCommand):
fed_choices, fed_choices,
org_choices, org_choices,
debug_on: bool, debug_on: bool,
) -> (DomainInformation, bool): ) -> Tuple[DomainInformation, bool]:
transition_domain_name = transition_domain.domain_name transition_domain_name = transition_domain.domain_name
# Get associated domain # Get associated domain

View file

@ -113,7 +113,7 @@ class TerminalHelper:
else: else:
logger.info("Please respond with a valid selection.\n") logger.info("Please respond with a valid selection.\n")
# @staticmethod @staticmethod
def array_as_string(array_to_convert: List[str]) -> str: def array_as_string(array_to_convert: List[str]) -> str:
array_as_string = "{}".format("\n".join(map(str, array_to_convert))) array_as_string = "{}".format("\n".join(map(str, array_to_convert)))
return array_as_string return array_as_string