mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
Final lint pass
This commit is contained in:
parent
fef39c4cbe
commit
b6f3b7a1e0
3 changed files with 4 additions and 4 deletions
|
@ -460,7 +460,6 @@ class Command(BaseCommand):
|
|||
logger.info("Reading domain-contacts data file %s", domain_contacts_filename)
|
||||
with open(domain_contacts_filename, "r") as domain_contacts_file:
|
||||
for row in csv.reader(domain_contacts_file, delimiter=sep):
|
||||
# TerminalHelper.printProgressBar(total_rows_parsed, total_lines)
|
||||
total_rows_parsed += 1
|
||||
|
||||
# fields are just domain, userid, role
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import logging
|
||||
import argparse
|
||||
import sys
|
||||
from typing import Tuple
|
||||
|
||||
from django_fsm import TransitionNotAllowed # type: ignore
|
||||
|
||||
|
@ -161,7 +162,7 @@ class Command(BaseCommand):
|
|||
# ======================================================
|
||||
def update_or_create_domain(
|
||||
self, transition_domain: TransitionDomain, debug_on: bool
|
||||
) -> (Domain, bool):
|
||||
) -> Tuple[Domain, bool]:
|
||||
"""Given a transition domain, either finds & updates an existing
|
||||
corresponding domain, or creates a new corresponding domain in
|
||||
the Domain table.
|
||||
|
@ -445,7 +446,7 @@ class Command(BaseCommand):
|
|||
fed_choices,
|
||||
org_choices,
|
||||
debug_on: bool,
|
||||
) -> (DomainInformation, bool):
|
||||
) -> Tuple[DomainInformation, bool]:
|
||||
transition_domain_name = transition_domain.domain_name
|
||||
|
||||
# Get associated domain
|
||||
|
|
|
@ -113,7 +113,7 @@ class TerminalHelper:
|
|||
else:
|
||||
logger.info("Please respond with a valid selection.\n")
|
||||
|
||||
# @staticmethod
|
||||
@staticmethod
|
||||
def array_as_string(array_to_convert: List[str]) -> str:
|
||||
array_as_string = "{}".format("\n".join(map(str, array_to_convert)))
|
||||
return array_as_string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue