Skip to content

Commit cd695c9

Browse files
chore: auto fixes from pre-commit.com hooks
1 parent 4d031b4 commit cd695c9

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

src/ansiblelint/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def get_version_warning() -> str:
315315
"https://api.github.com/repos/ansible/ansible-lint/releases/latest"
316316
)
317317
try:
318-
with urllib.request.urlopen(release_url) as url: # noqa: S310
318+
with urllib.request.urlopen(release_url) as url:
319319
data = json.load(url)
320320
with open(cache_file, "w", encoding="utf-8") as f:
321321
json.dump(data, f)

src/ansiblelint/rules/galaxy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ def matchplay(self, file: Lintable, data: dict[str, Any]) -> list[MatchError]:
210210
from ansiblelint.rules import RulesCollection # pylint: disable=ungrouped-imports
211211
from ansiblelint.runner import Runner
212212

213-
def test_galaxy_no_collection_version(empty_rule_collection: RulesCollection) -> None:
213+
def test_galaxy_no_collection_version(
214+
empty_rule_collection: RulesCollection,
215+
) -> None:
214216
"""Test for no collection version in galaxy."""
215217
empty_rule_collection.register(GalaxyRule())
216218
failure = "examples/.no_collection_version/galaxy.yml"

test/rules/test_no_changed_when.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Tests for no-change-when rule."""
22

3-
import pytest
43

54
from ansiblelint.rules import RulesCollection
65
from ansiblelint.rules.no_changed_when import CommandHasChangesCheckRule

test/rules/test_package_latest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Tests for package-latest rule."""
22

3-
import pytest
43

54
from ansiblelint.rules import RulesCollection
65
from ansiblelint.rules.package_latest import PackageIsNotLatestRule

test/test_profiles.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
from _pytest.capture import CaptureFixture
88

9-
import pytest
10-
119
from ansiblelint.rules import RulesCollection, filter_rules_with_profile
1210
from ansiblelint.rules.risky_shell_pipe import ShellWithoutPipefail
1311
from ansiblelint.text import strip_ansi_escape

0 commit comments

Comments
 (0)