mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 22:46:30 +02:00
Linter things
Removed old test_domain_migration.py file, and linted many items.
This commit is contained in:
parent
9468876197
commit
53c74a766f
7 changed files with 190 additions and 692 deletions
|
@ -2,6 +2,7 @@ import logging
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class TerminalColors:
|
||||
"""Colors for terminal outputs
|
||||
(makes reading the logs WAY easier)"""
|
||||
|
@ -18,8 +19,8 @@ class TerminalColors:
|
|||
UNDERLINE = "\033[4m"
|
||||
BackgroundLightYellow = "\033[103m"
|
||||
|
||||
class TerminalHelper:
|
||||
|
||||
class TerminalHelper:
|
||||
def query_yes_no(question: str, default="yes") -> bool:
|
||||
"""Ask a yes/no question via raw_input() and return their answer.
|
||||
|
||||
|
@ -57,4 +58,4 @@ class TerminalHelper:
|
|||
terminal if print_condition is TRUE"""
|
||||
# DEBUG:
|
||||
if print_condition:
|
||||
logger.info(print_statement)
|
||||
logger.info(print_statement)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue