diff options
| author | John L. Villalovos <john@sodarock.com> | 2021-05-22 08:55:19 -0700 |
|---|---|---|
| committer | John L. Villalovos <john@sodarock.com> | 2021-05-25 11:54:51 -0700 |
| commit | f3afd34260d681bbeec974b67012b90d407b7014 (patch) | |
| tree | 1e6131c02a5276abf26f72618ec0b0c86fd04ea2 /gitlab/v4 | |
| parent | dda646e8f2ecb733e37e6cffec331b783b64714e (diff) | |
| download | gitlab-f3afd34260d681bbeec974b67012b90d407b7014.tar.gz | |
chore: fix import ordering using isort
Fix the import ordering using isort.
https://pycqa.github.io/isort/
Diffstat (limited to 'gitlab/v4')
58 files changed, 61 insertions, 96 deletions
diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index a84a6a9..342eb6f 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -22,8 +22,8 @@ import sys import gitlab import gitlab.base -from gitlab import cli import gitlab.v4.objects +from gitlab import cli class GitlabCLI(object): diff --git a/gitlab/v4/objects/__init__.py b/gitlab/v4/objects/__init__.py index ac9f861..3317396 100644 --- a/gitlab/v4/objects/__init__.py +++ b/gitlab/v4/objects/__init__.py @@ -29,8 +29,8 @@ from .commits import * from .container_registry import * from .custom_attributes import * from .deploy_keys import * -from .deployments import * from .deploy_tokens import * +from .deployments import * from .discussions import * from .environments import * from .epics import * @@ -54,6 +54,7 @@ from .notes import * from .notification_settings import * from .packages import * from .pages import * +from .personal_access_tokens import * from .pipelines import * from .projects import * from .push_rules import * @@ -71,8 +72,6 @@ from .triggers import * from .users import * from .variables import * from .wikis import * -from .personal_access_tokens import * - # TODO: deprecate these in favor of gitlab.const.* VISIBILITY_PRIVATE = "private" diff --git a/gitlab/v4/objects/access_requests.py b/gitlab/v4/objects/access_requests.py index 7eef475..4e3328a 100644 --- a/gitlab/v4/objects/access_requests.py +++ b/gitlab/v4/objects/access_requests.py @@ -7,7 +7,6 @@ from gitlab.mixins import ( ObjectDeleteMixin, ) - __all__ = [ "GroupAccessRequest", "GroupAccessRequestManager", diff --git a/gitlab/v4/objects/appearance.py b/gitlab/v4/objects/appearance.py index 9d81ad6..a34398e 100644 --- a/gitlab/v4/objects/appearance.py +++ b/gitlab/v4/objects/appearance.py @@ -2,7 +2,6 @@ from gitlab import exceptions as exc from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import GetWithoutIdMixin, SaveMixin, UpdateMixin - __all__ = [ "ApplicationAppearance", "ApplicationAppearanceManager", diff --git a/gitlab/v4/objects/award_emojis.py b/gitlab/v4/objects/award_emojis.py index 1070fc7..1a7aecd 100644 --- a/gitlab/v4/objects/award_emojis.py +++ b/gitlab/v4/objects/award_emojis.py @@ -1,7 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin - __all__ = [ "ProjectIssueAwardEmoji", "ProjectIssueAwardEmojiManager", diff --git a/gitlab/v4/objects/badges.py b/gitlab/v4/objects/badges.py index ba1d41f..198f6ea 100644 --- a/gitlab/v4/objects/badges.py +++ b/gitlab/v4/objects/badges.py @@ -1,7 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import BadgeRenderMixin, CRUDMixin, ObjectDeleteMixin, SaveMixin - __all__ = [ "GroupBadge", "GroupBadgeManager", diff --git a/gitlab/v4/objects/boards.py b/gitlab/v4/objects/boards.py index cf36af1..b517fde 100644 --- a/gitlab/v4/objects/boards.py +++ b/gitlab/v4/objects/boards.py @@ -1,7 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin - __all__ = [ "GroupBoardList", "GroupBoardListManager", diff --git a/gitlab/v4/objects/branches.py b/gitlab/v4/objects/branches.py index 6b1b27f..3738657 100644 --- a/gitlab/v4/objects/branches.py +++ b/gitlab/v4/objects/branches.py @@ -3,7 +3,6 @@ from gitlab import exceptions as exc from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin - __all__ = [ "ProjectBranch", "ProjectBranchManager", diff --git a/gitlab/v4/objects/broadcast_messages.py b/gitlab/v4/objects/broadcast_messages.py index d6de53f..7784997 100644 --- a/gitlab/v4/objects/broadcast_messages.py +++ b/gitlab/v4/objects/broadcast_messages.py @@ -1,7 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin - __all__ = [ "BroadcastMessage", "BroadcastMessageManager", diff --git a/gitlab/v4/objects/clusters.py b/gitlab/v4/objects/clusters.py index 50b3fa3..10ff202 100644 --- a/gitlab/v4/objects/clusters.py +++ b/gitlab/v4/objects/clusters.py @@ -1,7 +1,6 @@ from gitlab import exceptions as exc from gitlab.base import RequiredOptional, RESTManager, RESTObject -from gitlab.mixins import CRUDMixin, CreateMixin, ObjectDeleteMixin, SaveMixin - +from gitlab.mixins import CreateMixin, CRUDMixin, ObjectDeleteMixin, SaveMixin __all__ = [ "GroupCluster", diff --git a/gitlab/v4/objects/commits.py b/gitlab/v4/objects/commits.py index 6176a08..76e582b 100644 --- a/gitlab/v4/objects/commits.py +++ b/gitlab/v4/objects/commits.py @@ -2,8 +2,8 @@ from gitlab import cli from gitlab import exceptions as exc from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CreateMixin, ListMixin, RefreshMixin, RetrieveMixin -from .discussions import ProjectCommitDiscussionManager # noqa: F401 +from .discussions import ProjectCommitDiscussionManager # noqa: F401 __all__ = [ "ProjectCommit", diff --git a/gitlab/v4/objects/container_registry.py b/gitlab/v4/objects/container_registry.py index 99bc7d2..f144c42 100644 --- a/gitlab/v4/objects/container_registry.py +++ b/gitlab/v4/objects/container_registry.py @@ -3,7 +3,6 @@ from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject from gitlab.mixins import DeleteMixin, ListMixin, ObjectDeleteMixin, RetrieveMixin - __all__ = [ "ProjectRegistryRepository", "ProjectRegistryRepositoryManager", diff --git a/gitlab/v4/objects/custom_attributes.py b/gitlab/v4/objects/custom_attributes.py index a4e9795..48296ca 100644 --- a/gitlab/v4/objects/custom_attributes.py +++ b/gitlab/v4/objects/custom_attributes.py @@ -1,7 +1,6 @@ from gitlab.base import RESTManager, RESTObject from gitlab.mixins import DeleteMixin, ObjectDeleteMixin, RetrieveMixin, SetMixin - __all__ = [ "GroupCustomAttribute", "GroupCustomAttributeManager", diff --git a/gitlab/v4/objects/deploy_keys.py b/gitlab/v4/objects/deploy_keys.py index 9c3dbfd..cf0507d 100644 --- a/gitlab/v4/objects/deploy_keys.py +++ b/gitlab/v4/objects/deploy_keys.py @@ -3,7 +3,6 @@ from gitlab import exceptions as exc from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ListMixin, ObjectDeleteMixin, SaveMixin - __all__ = [ "DeployKey", "DeployKeyManager", diff --git a/gitlab/v4/objects/deploy_tokens.py b/gitlab/v4/objects/deploy_tokens.py index c747664..c6ba0d6 100644 --- a/gitlab/v4/objects/deploy_tokens.py +++ b/gitlab/v4/objects/deploy_tokens.py @@ -2,7 +2,6 @@ from gitlab import types from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin - __all__ = [ "DeployToken", "DeployTokenManager", diff --git a/gitlab/v4/objects/deployments.py b/gitlab/v4/objects/deployments.py index 64d779f..dea8caf 100644 --- a/gitlab/v4/objects/deployments.py +++ b/gitlab/v4/objects/deployments.py @@ -1,7 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixin - __all__ = [ "ProjectDeployment", "ProjectDeploymentManager", diff --git a/gitlab/v4/objects/discussions.py b/gitlab/v4/objects/discussions.py index 2209185..f91d8fb 100644 --- a/gitlab/v4/objects/discussions.py +++ b/gitlab/v4/objects/discussions.py @@ -1,5 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixin + from .notes import ( # noqa: F401 ProjectCommitDiscussionNoteManager, ProjectIssueDiscussionNoteManager, @@ -7,7 +8,6 @@ from .notes import ( # noqa: F401 ProjectSnippetDiscussionNoteManager, ) - __all__ = [ "ProjectCommitDiscussion", "ProjectCommitDiscussionManager", diff --git a/gitlab/v4/objects/environments.py b/gitlab/v4/objects/environments.py index f540927..e318da8 100644 --- a/gitlab/v4/objects/environments.py +++ b/gitlab/v4/objects/environments.py @@ -10,7 +10,6 @@ from gitlab.mixins import ( UpdateMixin, ) - __all__ = [ "ProjectEnvironment", "ProjectEnvironmentManager", diff --git a/gitlab/v4/objects/epics.py b/gitlab/v4/objects/epics.py index 023d0a6..4311aa7 100644 --- a/gitlab/v4/objects/epics.py +++ b/gitlab/v4/objects/epics.py @@ -1,17 +1,17 @@ -from gitlab import types from gitlab import exceptions as exc +from gitlab import types from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import ( - CRUDMixin, CreateMixin, + CRUDMixin, DeleteMixin, ListMixin, ObjectDeleteMixin, SaveMixin, UpdateMixin, ) -from .events import GroupEpicResourceLabelEventManager # noqa: F401 +from .events import GroupEpicResourceLabelEventManager # noqa: F401 __all__ = [ "GroupEpic", diff --git a/gitlab/v4/objects/events.py b/gitlab/v4/objects/events.py index f57d02e..8772e8d 100644 --- a/gitlab/v4/objects/events.py +++ b/gitlab/v4/objects/events.py @@ -1,7 +1,6 @@ from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ListMixin, RetrieveMixin - __all__ = [ "Event", "EventManager", diff --git a/gitlab/v4/objects/export_import.py b/gitlab/v4/objects/export_import.py index 050874b..ec4532a 100644 --- a/gitlab/v4/objects/export_import.py +++ b/gitlab/v4/objects/export_import.py @@ -1,7 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CreateMixin, DownloadMixin, GetWithoutIdMixin, RefreshMixin - __all__ = [ "GroupExport", "GroupExportManager", diff --git a/gitlab/v4/objects/features.py b/gitlab/v4/objects/features.py index d96615e..93ac950 100644 --- a/gitlab/v4/objects/features.py +++ b/gitlab/v4/objects/features.py @@ -1,9 +1,8 @@ -from gitlab import utils from gitlab import exceptions as exc +from gitlab import utils from gitlab.base import RESTManager, RESTObject from gitlab.mixins import DeleteMixin, ListMixin, ObjectDeleteMixin - __all__ = [ "Feature", "FeatureManager", diff --git a/gitlab/v4/objects/files.py b/gitlab/v4/objects/files.py index 5d0401f..ff45478 100644 --- a/gitlab/v4/objects/files.py +++ b/gitlab/v4/objects/files.py @@ -1,6 +1,8 @@ import base64 -from gitlab import cli, utils + +from gitlab import cli from gitlab import exceptions as exc +from gitlab import utils from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import ( CreateMixin, @@ -11,7 +13,6 @@ from gitlab.mixins import ( UpdateMixin, ) - __all__ = [ "ProjectFile", "ProjectFileManager", diff --git a/gitlab/v4/objects/geo_nodes.py b/gitlab/v4/objects/geo_nodes.py index 3aaffd7..16fc783 100644 --- a/gitlab/v4/objects/geo_nodes.py +++ b/gitlab/v4/objects/geo_nodes.py @@ -9,7 +9,6 @@ from gitlab.mixins import ( UpdateMixin, ) - __all__ = [ "GeoNode", "GeoNodeManager", diff --git a/gitlab/v4/objects/groups.py b/gitlab/v4/objects/groups.py index 574c57b..8c1b681 100644 --- a/gitlab/v4/objects/groups.py +++ b/gitlab/v4/objects/groups.py @@ -1,17 +1,21 @@ -from gitlab import cli, types +from gitlab import cli from gitlab import exceptions as exc +from gitlab import types from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ListMixin, ObjectDeleteMixin, SaveMixin + from .access_requests import GroupAccessRequestManager # noqa: F401 from .audit_events import GroupAuditEventManager # noqa: F401 from .badges import GroupBadgeManager # noqa: F401 from .boards import GroupBoardManager # noqa: F401 +from .clusters import GroupClusterManager # noqa: F401 from .custom_attributes import GroupCustomAttributeManager # noqa: F401 -from .export_import import GroupExportManager, GroupImportManager # noqa: F401 +from .deploy_tokens import GroupDeployTokenManager # noqa: F401 from .epics import GroupEpicManager # noqa: F401 +from .export_import import GroupExportManager, GroupImportManager # noqa: F401 from .issues import GroupIssueManager # noqa: F401 from .labels import GroupLabelManager # noqa: F401 -from .members import GroupMemberManager, GroupMemberAllManager # noqa: F401 +from .members import GroupMemberAllManager, GroupMemberManager # noqa: F401 from .merge_requests import GroupMergeRequestManager # noqa: F401 from .milestones import GroupMilestoneManager # noqa: F401 from .notification_settings import GroupNotificationSettingsManager # noqa: F401 @@ -19,9 +23,6 @@ from .packages import GroupPackageManager # noqa: F401 from .projects import GroupProjectManager # noqa: F401 from .runners import GroupRunnerManager # noqa: F401 from .variables import GroupVariableManager # noqa: F401 -from .clusters import GroupClusterManager # noqa: F401 -from .deploy_tokens import GroupDeployTokenManager # noqa: F401 - __all__ = [ "Group", diff --git a/gitlab/v4/objects/hooks.py b/gitlab/v4/objects/hooks.py index b0eab07..69b324e 100644 --- a/gitlab/v4/objects/hooks.py +++ b/gitlab/v4/objects/hooks.py @@ -1,7 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, NoUpdateMixin, ObjectDeleteMixin, SaveMixin - __all__ = [ "Hook", "HookManager", diff --git a/gitlab/v4/objects/issues.py b/gitlab/v4/objects/issues.py index bf0e766..c77a8d5 100644 --- a/gitlab/v4/objects/issues.py +++ b/gitlab/v4/objects/issues.py @@ -1,9 +1,10 @@ -from gitlab import cli, types +from gitlab import cli from gitlab import exceptions as exc +from gitlab import types from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import ( - CRUDMixin, CreateMixin, + CRUDMixin, DeleteMixin, ListMixin, ObjectDeleteMixin, @@ -15,6 +16,7 @@ from gitlab.mixins import ( TodoMixin, UserAgentDetailMixin, ) + from .award_emojis import ProjectIssueAwardEmojiManager # noqa: F401 from .discussions import ProjectIssueDiscussionManager # noqa: F401 from .events import ( # noqa: F401 @@ -24,7 +26,6 @@ from .events import ( # noqa: F401 ) from .notes import ProjectIssueNoteManager # noqa: F401 - __all__ = [ "Issue", "IssueManager", diff --git a/gitlab/v4/objects/jobs.py b/gitlab/v4/objects/jobs.py index 6274f16..2e7693d 100644 --- a/gitlab/v4/objects/jobs.py +++ b/gitlab/v4/objects/jobs.py @@ -1,9 +1,9 @@ -from gitlab import cli, utils +from gitlab import cli from gitlab import exceptions as exc +from gitlab import utils from gitlab.base import RESTManager, RESTObject from gitlab.mixins import RefreshMixin, RetrieveMixin - __all__ = [ "ProjectJob", "ProjectJobManager", diff --git a/gitlab/v4/objects/labels.py b/gitlab/v4/objects/labels.py index 682c64f..544c3cd 100644 --- a/gitlab/v4/objects/labels.py +++ b/gitlab/v4/objects/labels.py @@ -11,7 +11,6 @@ from gitlab.mixins import ( UpdateMixin, ) - __all__ = [ "GroupLabel", "GroupLabelManager", diff --git a/gitlab/v4/objects/ldap.py b/gitlab/v4/objects/ldap.py index 72c8e7f..e0202a1 100644 --- a/gitlab/v4/objects/ldap.py +++ b/gitlab/v4/objects/ldap.py @@ -1,7 +1,6 @@ from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject, RESTObjectList - __all__ = [ "LDAPGroup", "LDAPGroupManager", diff --git a/gitlab/v4/objects/members.py b/gitlab/v4/objects/members.py index 839c89e..a64df24 100644 --- a/gitlab/v4/objects/members.py +++ b/gitlab/v4/objects/members.py @@ -2,10 +2,10 @@ from gitlab import types from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import ( CRUDMixin, + MemberAllMixin, ObjectDeleteMixin, - SaveMixin, RetrieveMixin, - MemberAllMixin, + SaveMixin, ) __all__ = [ diff --git a/gitlab/v4/objects/merge_request_approvals.py b/gitlab/v4/objects/merge_request_approvals.py index 8c0b420..407da2e 100644 --- a/gitlab/v4/objects/merge_request_approvals.py +++ b/gitlab/v4/objects/merge_request_approvals.py @@ -10,7 +10,6 @@ from gitlab.mixins import ( UpdateMixin, ) - __all__ = [ "ProjectApproval", "ProjectApprovalManager", diff --git a/gitlab/v4/objects/merge_requests.py b/gitlab/v4/objects/merge_requests.py index 711a95f..9ff72f9 100644 --- a/gitlab/v4/objects/merge_requests.py +++ b/gitlab/v4/objects/merge_requests.py @@ -1,5 +1,6 @@ -from gitlab import cli, types +from gitlab import cli from gitlab import exceptions as exc +from gitlab import types from gitlab.base import RequiredOptional, RESTManager, RESTObject, RESTObjectList from gitlab.mixins import ( CRUDMixin, @@ -12,21 +13,21 @@ from gitlab.mixins import ( TimeTrackingMixin, TodoMixin, ) -from .commits import ProjectCommit, ProjectCommitManager -from .issues import ProjectIssue, ProjectIssueManager -from .merge_request_approvals import ( # noqa: F401 - ProjectMergeRequestApprovalManager, - ProjectMergeRequestApprovalRuleManager, -) + from .award_emojis import ProjectMergeRequestAwardEmojiManager # noqa: F401 +from .commits import ProjectCommit, ProjectCommitManager from .discussions import ProjectMergeRequestDiscussionManager # noqa: F401 -from .notes import ProjectMergeRequestNoteManager # noqa: F401 from .events import ( # noqa: F401 ProjectMergeRequestResourceLabelEventManager, ProjectMergeRequestResourceMilestoneEventManager, ProjectMergeRequestResourceStateEventManager, ) - +from .issues import ProjectIssue, ProjectIssueManager +from .merge_request_approvals import ( # noqa: F401 + ProjectMergeRequestApprovalManager, + ProjectMergeRequestApprovalRuleManager, +) +from .notes import ProjectMergeRequestNoteManager # noqa: F401 __all__ = [ "MergeRequest", diff --git a/gitlab/v4/objects/milestones.py b/gitlab/v4/objects/milestones.py index 5dded37..0a53e1b 100644 --- a/gitlab/v4/objects/milestones.py +++ b/gitlab/v4/objects/milestones.py @@ -1,15 +1,16 @@ -from gitlab import cli, types +from gitlab import cli from gitlab import exceptions as exc +from gitlab import types from gitlab.base import RequiredOptional, RESTManager, RESTObject, RESTObjectList from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin + from .issues import GroupIssue, GroupIssueManager, ProjectIssue, ProjectIssueManager from .merge_requests import ( + GroupMergeRequest, ProjectMergeRequest, ProjectMergeRequestManager, - GroupMergeRequest, ) - __all__ = [ "GroupMilestone", "GroupMilestoneManager", diff --git a/gitlab/v4/objects/namespaces.py b/gitlab/v4/objects/namespaces.py index a9e1ef5..deee281 100644 --- a/gitlab/v4/objects/namespaces.py +++ b/gitlab/v4/objects/namespaces.py @@ -1,7 +1,6 @@ from gitlab.base import RESTManager, RESTObject from gitlab.mixins import RetrieveMixin - __all__ = [ "Namespace", "NamespaceManager", diff --git a/gitlab/v4/objects/notes.py b/gitlab/v4/objects/notes.py index 6fa50b9..d85fea7 100644 --- a/gitlab/v4/objects/notes.py +++ b/gitlab/v4/objects/notes.py @@ -1,7 +1,7 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import ( - CRUDMixin, CreateMixin, + CRUDMixin, DeleteMixin, GetMixin, ObjectDeleteMixin, @@ -9,13 +9,13 @@ from gitlab.mixins import ( SaveMixin, UpdateMixin, ) + from .award_emojis import ( # noqa: F401 ProjectIssueNoteAwardEmojiManager, ProjectMergeRequestNoteAwardEmojiManager, ProjectSnippetNoteAwardEmojiManager, ) - __all__ = [ "ProjectNote", "ProjectNoteManager", diff --git a/gitlab/v4/objects/notification_settings.py b/gitlab/v4/objects/notification_settings.py index 1738ab9..3682ed0 100644 --- a/gitlab/v4/objects/notification_settings.py +++ b/gitlab/v4/objects/notification_settings.py @@ -1,7 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import GetWithoutIdMixin, SaveMixin, UpdateMixin - __all__ = [ "NotificationSettings", "NotificationSettingsManager", diff --git a/gitlab/v4/objects/pages.py b/gitlab/v4/objects/pages.py index 9f9c97d..709d9f0 100644 --- a/gitlab/v4/objects/pages.py +++ b/gitlab/v4/objects/pages.py @@ -1,7 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ListMixin, ObjectDeleteMixin, SaveMixin - __all__ = [ "PagesDomain", "PagesDomainManager", diff --git a/gitlab/v4/objects/personal_access_tokens.py b/gitlab/v4/objects/personal_access_tokens.py index 7d2c5ce..a326bd6 100644 --- a/gitlab/v4/objects/personal_access_tokens.py +++ b/gitlab/v4/objects/personal_access_tokens.py @@ -1,7 +1,6 @@ from gitlab.base import RESTManager, RESTObject from gitlab.mixins import ListMixin - __all__ = [ "PersonalAccessToken", "PersonalAccessTokenManager", diff --git a/gitlab/v4/objects/pipelines.py b/gitlab/v4/objects/pipelines.py index 95063d4..644df7d 100644 --- a/gitlab/v4/objects/pipelines.py +++ b/gitlab/v4/objects/pipelines.py @@ -2,8 +2,8 @@ from gitlab import cli from gitlab import exceptions as exc from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import ( - CRUDMixin, CreateMixin, + CRUDMixin, DeleteMixin, ListMixin, ObjectDeleteMixin, @@ -13,7 +13,6 @@ from gitlab.mixins import ( UpdateMixin, ) - __all__ = [ "ProjectPipeline", "ProjectPipelineManager", diff --git a/gitlab/v4/objects/project_access_tokens.py b/gitlab/v4/objects/project_access_tokens.py index 15ef33a..f59ea85 100644 --- a/gitlab/v4/objects/project_access_tokens.py +++ b/gitlab/v4/objects/project_access_tokens.py @@ -1,7 +1,6 @@ from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin - __all__ = [ "ProjectAccessToken", "ProjectAccessTokenManager", diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py index 4223b18..8401c5c 100644 --- a/gitlab/v4/objects/projects.py +++ b/gitlab/v4/objects/projects.py @@ -1,9 +1,10 @@ -from gitlab import cli, types, utils +from gitlab import cli from gitlab import exceptions as exc +from gitlab import types, utils from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import ( - CRUDMixin, CreateMixin, + CRUDMixin, ListMixin, ObjectDeleteMixin, RefreshMixin, @@ -11,8 +12,8 @@ from gitlab.mixins import ( UpdateMixin, ) -from .project_access_tokens import ProjectAccessTokenManager # noqa: F401 from .access_requests import ProjectAccessRequestManager # noqa: F401 +from .audit_events import ProjectAuditEventManager # noqa: F401 from .badges import ProjectBadgeManager # noqa: F401 from .boards import ProjectBoardManager # noqa: F401 from .branches import ProjectBranchManager, ProjectProtectedBranchManager # noqa: F401 @@ -25,14 +26,13 @@ from .deploy_tokens import ProjectDeployTokenManager # noqa: F401 from .deployments import ProjectDeploymentManager # noqa: F401 from .environments import ProjectEnvironmentManager # noqa: F401 from .events import ProjectEventManager # noqa: F401 -from .audit_events import ProjectAuditEventManager # noqa: F401 from .export_import import ProjectExportManager, ProjectImportManager # noqa: F401 from .files import ProjectFileManager # noqa: F401 from .hooks import ProjectHookManager # noqa: F401 from .issues import ProjectIssueManager # noqa: F401 from .jobs import ProjectJobManager # noqa: F401 from .labels import ProjectLabelManager # noqa: F401 -from .members import ProjectMemberManager, ProjectMemberAllManager # noqa: F401 +from .members import ProjectMemberAllManager, ProjectMemberManager # noqa: F401 from .merge_request_approvals import ( # noqa: F401 ProjectApprovalManager, ProjectApprovalRuleManager, @@ -48,6 +48,7 @@ from .pipelines import ( # noqa: F401 ProjectPipelineManager, ProjectPipelineScheduleManager, ) +from .project_access_tokens import ProjectAccessTokenManager # noqa: F401 from .push_rules import ProjectPushRulesManager # noqa: F401 from .releases import ProjectReleaseManager # noqa: F401 from .repositories import RepositoryMixin @@ -64,7 +65,6 @@ from .users import ProjectUserManager # noqa: F401 from .variables import ProjectVariableManager # noqa: F401 from .wikis import ProjectWikiManager # noqa: F401 - __all__ = [ "GroupProject", "GroupProjectManager", diff --git a/gitlab/v4/objects/push_rules.py b/gitlab/v4/objects/push_rules.py index 19062bf..ee20f96 100644 --- a/gitlab/v4/objects/push_rules.py +++ b/gitlab/v4/objects/push_rules.py @@ -8,7 +8,6 @@ from gitlab.mixins import ( UpdateMixin, ) - __all__ = [ "ProjectPushRules", "ProjectPushRulesManager", diff --git a/gitlab/v4/objects/releases.py b/gitlab/v4/objects/releases.py index 9c94187..ab490dd 100644 --- a/gitlab/v4/objects/releases.py +++ b/gitlab/v4/objects/releases.py @@ -1,7 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, NoUpdateMixin, ObjectDeleteMixin, SaveMixin - __all__ = [ "ProjectRelease", "ProjectReleaseManager", diff --git a/gitlab/v4/objects/repositories.py b/gitlab/v4/objects/repositories.py index a171ffb..5a56a2d 100644 --- a/gitlab/v4/objects/repositories.py +++ b/gitlab/v4/objects/repositories.py @@ -4,8 +4,9 @@ GitLab API: https://docs.gitlab.com/ee/api/repositories.html Currently this module only contains repository-related methods for projects. """ -from gitlab import cli, utils +from gitlab import cli from gitlab import exceptions as exc +from gitlab import utils class RepositoryMixin: diff --git a/gitlab/v4/objects/runners.py b/gitlab/v4/objects/runners.py index 15875ab..8a18f9b 100644 --- a/gitlab/v4/objects/runners.py +++ b/gitlab/v4/objects/runners.py @@ -1,5 +1,6 @@ -from gitlab import cli, types +from gitlab import cli from gitlab import exceptions as exc +from gitlab import types from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import ( CRUDMixin, @@ -9,7 +10,6 @@ from gitlab.mixins import ( SaveMixin, ) - __all__ = [ "RunnerJob", "RunnerJobManager", diff --git a/gitlab/v4/objects/services.py b/gitlab/v4/objects/services.py index 17bf63a..6aedc39 100644 --- a/gitlab/v4/objects/services.py +++ b/gitlab/v4/objects/services.py @@ -9,7 +9,6 @@ from gitlab.mixins import ( UpdateMixin, ) - __all__ = [ "ProjectService", "ProjectServiceManager", diff --git a/gitlab/v4/objects/settings.py b/gitlab/v4/objects/settings.py index 6b7537b..1c8be25 100644 --- a/gitlab/v4/objects/settings.py +++ b/gitlab/v4/objects/settings.py @@ -1,9 +1,8 @@ -from gitlab import types from gitlab import exceptions as exc +from gitlab import types from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import GetWithoutIdMixin, SaveMixin, UpdateMixin - __all__ = [ "ApplicationSettings", "ApplicationSettingsManager", diff --git a/gitlab/v4/objects/sidekiq.py b/gitlab/v4/objects/sidekiq.py index 84306bc..54238ab 100644 --- a/gitlab/v4/objects/sidekiq.py +++ b/gitlab/v4/objects/sidekiq.py @@ -2,7 +2,6 @@ from gitlab import cli from gitlab import exceptions as exc from gitlab.base import RESTManager - __all__ = [ "SidekiqManager", ] diff --git a/gitlab/v4/objects/snippets.py b/gitlab/v4/objects/snippets.py index 330cc8c..b893eca 100644 --- a/gitlab/v4/objects/snippets.py +++ b/gitlab/v4/objects/snippets.py @@ -1,5 +1,6 @@ -from gitlab import cli, utils +from gitlab import cli from gitlab import exceptions as exc +from gitlab import utils from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin, UserAgentDetailMixin @@ -7,7 +8,6 @@ from .award_emojis import ProjectSnippetAwardEmojiManager # noqa: F401 from .discussions import ProjectSnippetDiscussionManager # noqa: F401 from .notes import ProjectSnippetNoteManager # noqa: F401 - __all__ = [ "Snippet", "SnippetManager", diff --git a/gitlab/v4/objects/statistics.py b/gitlab/v4/objects/statistics.py index 2dbcdfe..2e3edc7 100644 --- a/gitlab/v4/objects/statistics.py +++ b/gitlab/v4/objects/statistics.py @@ -1,7 +1,6 @@ from gitlab.base import RESTManager, RESTObject from gitlab.mixins import GetWithoutIdMixin, RefreshMixin - __all__ = [ "ProjectAdditionalStatistics", "ProjectAdditionalStatisticsManager", diff --git a/gitlab/v4/objects/tags.py b/gitlab/v4/objects/tags.py index cb3b11f..cf37e21 100644 --- a/gitlab/v4/objects/tags.py +++ b/gitlab/v4/objects/tags.py @@ -3,7 +3,6 @@ from gitlab import exceptions as exc from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin - __all__ = [ "ProjectTag", "ProjectTagManager", diff --git a/gitlab/v4/objects/templates.py b/gitlab/v4/objects/templates.py index 4da864b..04de463 100644 --- a/gitlab/v4/objects/templates.py +++ b/gitlab/v4/objects/templates.py @@ -1,7 +1,6 @@ from gitlab.base import RESTManager, RESTObject from gitlab.mixins import RetrieveMixin - __all__ = [ "Dockerfile", "DockerfileManager", diff --git a/gitlab/v4/objects/todos.py b/gitlab/v4/objects/todos.py index 7dc7a51..23a0614 100644 --- a/gitlab/v4/objects/todos.py +++ b/gitlab/v4/objects/todos.py @@ -3,7 +3,6 @@ from gitlab import exceptions as exc from gitlab.base import RESTManager, RESTObject from gitlab.mixins import DeleteMixin, ListMixin, ObjectDeleteMixin - __all__ = [ "Todo", "TodoManager", diff --git a/gitlab/v4/objects/triggers.py b/gitlab/v4/objects/triggers.py index f45f4ef..0eff8ac 100644 --- a/gitlab/v4/objects/triggers.py +++ b/gitlab/v4/objects/triggers.py @@ -3,7 +3,6 @@ from gitlab import exceptions as exc from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin - __all__ = [ "ProjectTrigger", "ProjectTriggerManager", diff --git a/gitlab/v4/objects/users.py b/gitlab/v4/objects/users.py index 8a8db71..cc5cfd8 100644 --- a/gitlab/v4/objects/users.py +++ b/gitlab/v4/objects/users.py @@ -1,9 +1,10 @@ -from gitlab import cli, types +from gitlab import cli from gitlab import exceptions as exc +from gitlab import types from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import ( - CRUDMixin, CreateMixin, + CRUDMixin, DeleteMixin, GetWithoutIdMixin, ListMixin, @@ -17,7 +18,6 @@ from gitlab.mixins import ( from .custom_attributes import UserCustomAttributeManager # noqa: F401 from .events import UserEventManager # noqa: F401 - __all__ = [ "CurrentUserEmail", "CurrentUserEmailManager", diff --git a/gitlab/v4/objects/variables.py b/gitlab/v4/objects/variables.py index 54ee149..2e5e483 100644 --- a/gitlab/v4/objects/variables.py +++ b/gitlab/v4/objects/variables.py @@ -7,7 +7,6 @@ https://docs.gitlab.com/ee/api/group_level_variables.html from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin - __all__ = [ "Variable", "VariableManager", diff --git a/gitlab/v4/objects/wikis.py b/gitlab/v4/objects/wikis.py index 722095d..52a230f 100644 --- a/gitlab/v4/objects/wikis.py +++ b/gitlab/v4/objects/wikis.py @@ -1,7 +1,6 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin - __all__ = [ "ProjectWiki", "ProjectWikiManager", |
