diff --git a/src/ansiblelint/__main__.py b/src/ansiblelint/__main__.py index 3b3e14eaba..5ef06e14bf 100755 --- a/src/ansiblelint/__main__.py +++ b/src/ansiblelint/__main__.py @@ -51,13 +51,6 @@ from ansiblelint import cli from ansiblelint._mockings import _perform_mockings_cleanup from ansiblelint.app import get_app -from ansiblelint.color import ( - console, - console_options, - console_stderr, - reconfigure, - render_yaml, -) from ansiblelint.config import ( Options, get_deps_versions, @@ -66,6 +59,13 @@ options, ) from ansiblelint.loaders import load_ignore_txt +from ansiblelint.output import ( + console, + console_options, + console_stderr, + reconfigure, + render_yaml, +) from ansiblelint.runner import get_matches from ansiblelint.skip_utils import normalize_tag from ansiblelint.version import __version__ diff --git a/src/ansiblelint/app.py b/src/ansiblelint/app.py index 78c3ee0cd6..baf3b0bffb 100644 --- a/src/ansiblelint/app.py +++ b/src/ansiblelint/app.py @@ -17,11 +17,11 @@ from ansiblelint import formatters from ansiblelint._mockings import _perform_mockings -from ansiblelint.color import console, console_stderr, render_yaml from ansiblelint.config import PROFILES, Options, get_version_warning from ansiblelint.config import options as default_options from ansiblelint.constants import RC, RULE_DOC_URL from ansiblelint.loaders import IGNORE_FILE +from ansiblelint.output import console, console_stderr, render_yaml from ansiblelint.requirements import Reqs from ansiblelint.stats import SummarizedResults, TagStats diff --git a/src/ansiblelint/color.py b/src/ansiblelint/output.py similarity index 98% rename from src/ansiblelint/color.py rename to src/ansiblelint/output.py index d72d98d0e3..fc92a6300e 100644 --- a/src/ansiblelint/color.py +++ b/src/ansiblelint/output.py @@ -1,4 +1,4 @@ -"""Console coloring and terminal support.""" +"""Console support: coloring and terminal code.""" from __future__ import annotations