Skip to content

Commit

Permalink
chore: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 31, 2023
1 parent f04c902 commit 27cd20f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions src/ansiblelint/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,17 @@
import time
import urllib.request
import warnings
from dataclasses import dataclass, field
from functools import lru_cache
from importlib.metadata import PackageNotFoundError, version
from pathlib import Path
from typing import TYPE_CHECKING, Any
from typing import Any
from urllib.error import HTTPError, URLError

from packaging.version import Version

from ansiblelint import __version__
from ansiblelint.loaders import yaml_from_file

if TYPE_CHECKING:
from filelock import FileLock


_logger = logging.getLogger(__name__)


Expand Down
4 changes: 2 additions & 2 deletions src/ansiblelint/rules/complexity.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ansiblelint.rules import AnsibleLintRule

if TYPE_CHECKING:
from ansiblelint.file_utils import Lintable # noqa: F811
from ansiblelint.file_utils import Lintable


class ComplexityRule(AnsibleLintRule):
Expand Down Expand Up @@ -42,7 +42,7 @@ def matchplay(self, file: Lintable, data: dict[str, Any]) -> list[MatchError]:
return results


if "pytest" in sys.modules: # noqa: C901
if "pytest" in sys.modules:
import pytest

from ansiblelint.rules import RulesCollection # pylint: disable=ungrouped-imports
Expand Down

0 comments on commit 27cd20f

Please sign in to comment.