Skip to content

Commit

Permalink
Make prerun module public (#1483)
Browse files Browse the repository at this point in the history
This change should allow molecule to reuse this module without having
to perform private imports.
  • Loading branch information
ssbarnea authored Mar 19, 2021
1 parent 205a36c commit ce88e0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ansiblelint/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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__

Expand Down
1 change: 1 addition & 0 deletions src/ansiblelint/_prerun.py → src/ansiblelint/prerun.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Utilities for configuring ansible runtime environment."""
import logging
import os
import pathlib
Expand Down
2 changes: 1 addition & 1 deletion src/ansiblelint/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce88e0b

Please sign in to comment.