Skip to content

Commit

Permalink
Fixup: remove F401 when using __all__ and remove unecessary options
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-psb committed Oct 15, 2024
1 parent 48ec098 commit 84b5a93
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion docs/dev/reference/code-api/platform-api/app/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
::: pulpcore.app.authentication
options:
members: true
filters: ["!_*"]
2 changes: 0 additions & 2 deletions docs/dev/reference/code-api/plugins-api/stages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pulpcore/plugin/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pulpcore.exceptions import ( # noqa: F401
from pulpcore.exceptions import (
DigestValidationError,
InvalidSignatureError,
PulpException,
Expand Down
2 changes: 1 addition & 1 deletion pulpcore/plugin/storage.py
Original file line number Diff line number Diff line change
@@ -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"]
6 changes: 3 additions & 3 deletions pulpcore/plugin/tasking.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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__ = [
Expand Down
4 changes: 2 additions & 2 deletions pulpcore/plugin/util.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 84b5a93

Please sign in to comment.