From 84b5a93f69d6561428ad1020d7e858d38f804937 Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Tue, 15 Oct 2024 11:04:27 -0300 Subject: [PATCH] Fixup: remove F401 when using __all__ and remove unecessary options --- docs/dev/reference/code-api/platform-api/app/auth.md | 1 - docs/dev/reference/code-api/plugins-api/stages.md | 2 -- pulpcore/plugin/exceptions.py | 2 +- pulpcore/plugin/storage.py | 2 +- pulpcore/plugin/tasking.py | 6 +++--- pulpcore/plugin/util.py | 4 ++-- 6 files changed, 7 insertions(+), 10 deletions(-) diff --git a/docs/dev/reference/code-api/platform-api/app/auth.md b/docs/dev/reference/code-api/platform-api/app/auth.md index 1615e3e830..97bb7020f1 100644 --- a/docs/dev/reference/code-api/platform-api/app/auth.md +++ b/docs/dev/reference/code-api/platform-api/app/auth.md @@ -3,4 +3,3 @@ ::: pulpcore.app.authentication options: members: true - filters: ["!_*"] diff --git a/docs/dev/reference/code-api/plugins-api/stages.md b/docs/dev/reference/code-api/plugins-api/stages.md index 0f89df1f6b..73813186eb 100644 --- a/docs/dev/reference/code-api/plugins-api/stages.md +++ b/docs/dev/reference/code-api/plugins-api/stages.md @@ -40,8 +40,6 @@ to make writing sync code easier. There are several parts to the API: ## Content Related Stages ::: pulpcore.plugin.stages.ContentSaver - options: - filters: ["!_pre_save", "!_post_save"] ::: pulpcore.plugin.stages.QueryExistingContents diff --git a/pulpcore/plugin/exceptions.py b/pulpcore/plugin/exceptions.py index c056a8bc55..59870dc624 100644 --- a/pulpcore/plugin/exceptions.py +++ b/pulpcore/plugin/exceptions.py @@ -1,4 +1,4 @@ -from pulpcore.exceptions import ( # noqa: F401 +from pulpcore.exceptions import ( DigestValidationError, InvalidSignatureError, PulpException, diff --git a/pulpcore/plugin/storage.py b/pulpcore/plugin/storage.py index 9547a75e26..6259dc7943 100644 --- a/pulpcore/plugin/storage.py +++ b/pulpcore/plugin/storage.py @@ -1,4 +1,4 @@ -from pulpcore.app.models.storage import get_tls_path # noqa: F401 +from pulpcore.app.models.storage import get_tls_path __all__ = ["get_tls_path"] diff --git a/pulpcore/plugin/tasking.py b/pulpcore/plugin/tasking.py index 2dea88a28e..6cda2b23ec 100644 --- a/pulpcore/plugin/tasking.py +++ b/pulpcore/plugin/tasking.py @@ -1,7 +1,7 @@ # Support plugins dispatching tasks -from pulpcore.tasking.tasks import dispatch # noqa: F401 +from pulpcore.tasking.tasks import dispatch -from pulpcore.app.tasks import ( # noqa: F401 +from pulpcore.app.tasks import ( fs_publication_export, fs_repo_version_export, general_create, @@ -12,7 +12,7 @@ orphan_cleanup, reclaim_space, ) -from pulpcore.app.tasks.repository import add_and_remove # noqa: F401 +from pulpcore.app.tasks.repository import add_and_remove __all__ = [ diff --git a/pulpcore/plugin/util.py b/pulpcore/plugin/util.py index e66cc868f1..49b0b03260 100644 --- a/pulpcore/plugin/util.py +++ b/pulpcore/plugin/util.py @@ -1,4 +1,4 @@ -from pulpcore.app.role_util import ( # noqa: F401 +from pulpcore.app.role_util import ( assign_role, get_groups_with_perms, get_groups_with_perms_attached_perms, @@ -12,7 +12,7 @@ remove_role, ) -from pulpcore.app.util import ( # noqa: F401 +from pulpcore.app.util import ( batch_qs, extract_pk, get_artifact_url,