diff --git a/autonomic/command/actions.py b/autonomic/command/actions.py index 93f990a..7ae757e 100644 --- a/autonomic/command/actions.py +++ b/autonomic/command/actions.py @@ -3,11 +3,11 @@ from os import environ import click +from PyInquirer import prompt from autonomic.config import ACTIONS_DIR, INFRA_DIR from autonomic.infra import get_passwd, run_play -from autonomic.utils import check_git, qlist -from PyInquirer import prompt +from autonomic.utils import git_status, qlist @click.command() @@ -31,5 +31,4 @@ def actions(ctx): play = "{}/{}.yml".format(ACTIONS_DIR, action) run_play(play, env=env) - - check_git(INFRA_DIR) + git_status(INFRA_DIR) diff --git a/autonomic/logger.py b/autonomic/logger.py index 9742f84..9a995a7 100644 --- a/autonomic/logger.py +++ b/autonomic/logger.py @@ -28,7 +28,7 @@ class LogFilter(object): return logRecord.levelno <= self.__level -class CustomLogger(logging.getLoggerClass()): +class CustomLogger(logging.getLoggerClass()): # type: ignore def __init__(self, name, level=logging.NOTSET): super(logging.getLoggerClass(), self).__init__(name, level) logging.addLevelName(SUCCESS, "SUCCESS") diff --git a/autonomic/utils.py b/autonomic/utils.py index 404cfef..0588980 100644 --- a/autonomic/utils.py +++ b/autonomic/utils.py @@ -12,7 +12,6 @@ from subprocess import check_output from psutil import process_iter -from autonomic.config import INFRA_DIR from autonomic.logger import log from autonomic.yaml import yaml diff --git a/autonomic/yaml.py b/autonomic/yaml.py index 0f97fec..0e9980f 100644 --- a/autonomic/yaml.py +++ b/autonomic/yaml.py @@ -10,4 +10,4 @@ from ruamel.yaml import YAML yaml = YAML() # ensure that "---" is always at the top of the YAML file -yaml.explicit_start = True +yaml.explicit_start = True # type: ignore diff --git a/tox.ini b/tox.ini index af747e1..e3c4537 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,6 @@ envlist = format type docs - changelog metadata-release skip_missing_interpreters = True isolated_build = True