diff --git a/src/ansiblelint/__main__.py b/src/ansiblelint/__main__.py index f2312d21e7..482e395fd0 100755 --- a/src/ansiblelint/__main__.py +++ b/src/ansiblelint/__main__.py @@ -32,7 +32,6 @@ from enrich.console import should_do_markup from ansiblelint import cli -from ansiblelint._prerun import check_ansible_presence, prepare_environment from ansiblelint.app import App from ansiblelint.color import ( console, @@ -44,6 +43,7 @@ from ansiblelint.config import options from ansiblelint.constants import ANSIBLE_MISSING_RC, EXIT_CONTROL_C_RC from ansiblelint.file_utils import cwd +from ansiblelint.prerun import check_ansible_presence, prepare_environment from ansiblelint.skip_utils import normalize_tag from ansiblelint.version import __version__ diff --git a/src/ansiblelint/_prerun.py b/src/ansiblelint/prerun.py similarity index 99% rename from src/ansiblelint/_prerun.py rename to src/ansiblelint/prerun.py index 4d31d2e177..f3591b9d11 100644 --- a/src/ansiblelint/_prerun.py +++ b/src/ansiblelint/prerun.py @@ -1,3 +1,4 @@ +"""Utilities for configuring ansible runtime environment.""" import logging import os import pathlib diff --git a/src/ansiblelint/testing/__init__.py b/src/ansiblelint/testing/__init__.py index 21d242085c..aa1ae1d58d 100644 --- a/src/ansiblelint/testing/__init__.py +++ b/src/ansiblelint/testing/__init__.py @@ -7,7 +7,7 @@ import tempfile from typing import TYPE_CHECKING, Any, Dict, List, Optional -from ansiblelint._prerun import prepare_environment +from ansiblelint.prerun import prepare_environment if TYPE_CHECKING: # https://github.com/PyCQA/pylint/issues/3240