From e104f7ec8e1dc480d5bdd2e0c4e4954a565d77c3 Mon Sep 17 00:00:00 2001 From: stone-w4tch3r <100294019+stone-w4tch3r@users.noreply.github.com> Date: Fri, 5 Apr 2024 18:51:42 +0500 Subject: [PATCH] more pre-pr style fixes --- pyinfra/operations/brew.py | 2 +- pyinfra/operations/selinux.py | 2 +- pyinfra/operations/util/packaging.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyinfra/operations/brew.py b/pyinfra/operations/brew.py index c377f63f4..b630b4442 100644 --- a/pyinfra/operations/brew.py +++ b/pyinfra/operations/brew.py @@ -5,7 +5,7 @@ import urllib from pyinfra import host -from pyinfra.api import operation, Host +from pyinfra.api import operation from pyinfra.facts.brew import BrewCasks, BrewPackages, BrewTaps, BrewVersion, new_cask_cli from .util.packaging import ensure_packages diff --git a/pyinfra/operations/selinux.py b/pyinfra/operations/selinux.py index 080a3ec72..8d7296c69 100644 --- a/pyinfra/operations/selinux.py +++ b/pyinfra/operations/selinux.py @@ -4,7 +4,7 @@ from enum import Enum from pyinfra import host -from pyinfra.api import QuoteString, StringCommand, operation, OperationValueError +from pyinfra.api import OperationValueError, QuoteString, StringCommand, operation from pyinfra.facts.selinux import FileContext, FileContextMapping, SEBoolean, SEPort, SEPorts from pyinfra.facts.server import Which diff --git a/pyinfra/operations/util/packaging.py b/pyinfra/operations/util/packaging.py index d006ee6ef..5a531ae83 100644 --- a/pyinfra/operations/util/packaging.py +++ b/pyinfra/operations/util/packaging.py @@ -77,7 +77,8 @@ def ensure_packages( upgrade_command: as above for upgrading version_join: the package manager specific "joiner", ie ``=`` for \ ``=`` - expand_package_fact: fact returning list of packages providing a capability (ie ``yum whatprovides``) + expand_package_fact: fact returning packages providing a capability \ + (ie ``yum whatprovides``) """ if packages_to_ensure is None: