Skip to content

Commit 0b67ca2

Browse files
authored
Merge pull request #1319 from JohnVillalovos/jlvillal/import_star
chore: remove usage of 'from ... import *'
2 parents e06c51b + c83eaf4 commit 0b67ca2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+244
-114
lines changed

gitlab/v4/objects/access_requests.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import (
3+
AccessRequestMixin,
4+
CreateMixin,
5+
DeleteMixin,
6+
ListMixin,
7+
ObjectDeleteMixin,
8+
)
39

410

511
__all__ = [

gitlab/v4/objects/appearance.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from gitlab import exceptions as exc
2-
from gitlab.base import * # noqa
3-
from gitlab.mixins import * # noqa
2+
from gitlab.base import RESTManager, RESTObject
3+
from gitlab.mixins import GetWithoutIdMixin, SaveMixin, UpdateMixin
44

55

66
__all__ = [

gitlab/v4/objects/applications.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin
33

44
__all__ = [
55
"Application",

gitlab/v4/objects/audit_events.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
https://docs.gitlab.com/ee/api/audit_events.html#project-audit-events
44
"""
55

6-
from gitlab.base import * # noqa
7-
from gitlab.mixins import * # noqa
6+
from gitlab.base import RESTManager, RESTObject
7+
from gitlab.mixins import RetrieveMixin
88

99
__all__ = [
1010
"ProjectAudit",

gitlab/v4/objects/award_emojis.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin
33

44

55
__all__ = [

gitlab/v4/objects/badges.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import BadgeRenderMixin, CRUDMixin, ObjectDeleteMixin, SaveMixin
33

44

55
__all__ = [

gitlab/v4/objects/boards.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin
33

44

55
__all__ = [

gitlab/v4/objects/branches.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from gitlab import cli
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin
55

66

77
__all__ = [

gitlab/v4/objects/broadcast_messages.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin
33

44

55
__all__ = [

gitlab/v4/objects/clusters.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from gitlab import exceptions as exc
2-
from gitlab.base import * # noqa
3-
from gitlab.mixins import * # noqa
2+
from gitlab.base import RESTManager, RESTObject
3+
from gitlab.mixins import CRUDMixin, CreateMixin, ObjectDeleteMixin, SaveMixin
44

55

66
__all__ = [

gitlab/v4/objects/commits.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from gitlab import cli
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import CreateMixin, ListMixin, RefreshMixin, RetrieveMixin
55
from .discussions import ProjectCommitDiscussionManager
66

77

gitlab/v4/objects/container_registry.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from gitlab import cli
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import DeleteMixin, ListMixin, ObjectDeleteMixin, RetrieveMixin
55

66

77
__all__ = [

gitlab/v4/objects/custom_attributes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import DeleteMixin, ObjectDeleteMixin, RetrieveMixin, SetMixin
33

44

55
__all__ = [

gitlab/v4/objects/deploy_keys.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from gitlab import cli
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import CRUDMixin, ListMixin, ObjectDeleteMixin, SaveMixin
55

66

77
__all__ = [

gitlab/v4/objects/deploy_tokens.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import CreateMixin, DeleteMixin, ListMixin, ObjectDeleteMixin
33

44

55
__all__ = [

gitlab/v4/objects/deployments.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixin
33

44

55
__all__ = [

gitlab/v4/objects/discussions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixin
33
from .notes import (
44
ProjectCommitDiscussionNoteManager,
55
ProjectIssueDiscussionNoteManager,

gitlab/v4/objects/environments.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
from gitlab import cli
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import (
5+
CreateMixin,
6+
DeleteMixin,
7+
ObjectDeleteMixin,
8+
RetrieveMixin,
9+
SaveMixin,
10+
UpdateMixin,
11+
)
512

613

714
__all__ = [

gitlab/v4/objects/epics.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
from gitlab import types
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import (
5+
CRUDMixin,
6+
CreateMixin,
7+
DeleteMixin,
8+
ListMixin,
9+
ObjectDeleteMixin,
10+
SaveMixin,
11+
UpdateMixin,
12+
)
513
from .events import GroupEpicResourceLabelEventManager
614

715

gitlab/v4/objects/events.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from gitlab import exceptions as exc
2-
from gitlab.base import * # noqa
3-
from gitlab.mixins import * # noqa
2+
from gitlab.base import RESTManager, RESTObject
3+
from gitlab.mixins import ListMixin, RetrieveMixin
44

55

66
__all__ = [

gitlab/v4/objects/export_import.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import CreateMixin, DownloadMixin, GetWithoutIdMixin, RefreshMixin
33

44

55
__all__ = [

gitlab/v4/objects/features.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from gitlab import utils
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import DeleteMixin, ListMixin, ObjectDeleteMixin
55

66

77
__all__ = [

gitlab/v4/objects/files.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
import base64
22
from gitlab import cli, utils
33
from gitlab import exceptions as exc
4-
from gitlab.base import * # noqa
5-
from gitlab.mixins import * # noqa
4+
from gitlab.base import RESTManager, RESTObject
5+
from gitlab.mixins import (
6+
CreateMixin,
7+
DeleteMixin,
8+
GetMixin,
9+
ObjectDeleteMixin,
10+
SaveMixin,
11+
UpdateMixin,
12+
)
613

714

815
__all__ = [

gitlab/v4/objects/geo_nodes.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
from gitlab import cli
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import (
5+
DeleteMixin,
6+
ObjectDeleteMixin,
7+
RetrieveMixin,
8+
SaveMixin,
9+
UpdateMixin,
10+
)
511

612

713
__all__ = [

gitlab/v4/objects/groups.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from gitlab import cli, types
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import CRUDMixin, ListMixin, ObjectDeleteMixin, SaveMixin
55
from .access_requests import GroupAccessRequestManager
66
from .badges import GroupBadgeManager
77
from .boards import GroupBoardManager

gitlab/v4/objects/hooks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import CRUDMixin, NoUpdateMixin, ObjectDeleteMixin, SaveMixin
33

44

55
__all__ = [

gitlab/v4/objects/issues.py

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
from gitlab import cli, types
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import (
5+
CRUDMixin,
6+
CreateMixin,
7+
DeleteMixin,
8+
ListMixin,
9+
ObjectDeleteMixin,
10+
ParticipantsMixin,
11+
RetrieveMixin,
12+
SaveMixin,
13+
SubscribableMixin,
14+
TimeTrackingMixin,
15+
TodoMixin,
16+
UserAgentDetailMixin,
17+
)
518
from .award_emojis import ProjectIssueAwardEmojiManager
619
from .discussions import ProjectIssueDiscussionManager
720
from .events import (

gitlab/v4/objects/jobs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from gitlab import cli, utils
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import RefreshMixin, RetrieveMixin
55

66

77
__all__ = [

gitlab/v4/objects/labels.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
from gitlab import exceptions as exc
2-
from gitlab.base import * # noqa
3-
from gitlab.mixins import * # noqa
2+
from gitlab.base import RESTManager, RESTObject
3+
from gitlab.mixins import (
4+
CreateMixin,
5+
DeleteMixin,
6+
ListMixin,
7+
ObjectDeleteMixin,
8+
RetrieveMixin,
9+
SaveMixin,
10+
SubscribableMixin,
11+
UpdateMixin,
12+
)
413

514

615
__all__ = [

gitlab/v4/objects/ldap.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from gitlab import exceptions as exc
2-
from gitlab.base import * # noqa
3-
from gitlab.mixins import * # noqa
2+
from gitlab.base import RESTManager, RESTObject, RESTObjectList
43

54

65
__all__ = [

gitlab/v4/objects/members.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from gitlab import cli
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject
4+
from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin
55

66

77
__all__ = [

gitlab/v4/objects/merge_request_approvals.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
from gitlab import exceptions as exc
2-
from gitlab.base import * # noqa
3-
from gitlab.mixins import * # noqa
2+
from gitlab.base import RESTManager, RESTObject
3+
from gitlab.mixins import (
4+
CreateMixin,
5+
DeleteMixin,
6+
GetWithoutIdMixin,
7+
ListMixin,
8+
ObjectDeleteMixin,
9+
SaveMixin,
10+
UpdateMixin,
11+
)
412

513

614
__all__ = [

gitlab/v4/objects/merge_requests.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
from gitlab import cli, types
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject, RESTObjectList
4+
from gitlab.mixins import (
5+
CRUDMixin,
6+
ListMixin,
7+
ObjectDeleteMixin,
8+
ParticipantsMixin,
9+
RetrieveMixin,
10+
SaveMixin,
11+
SubscribableMixin,
12+
TimeTrackingMixin,
13+
TodoMixin,
14+
)
515
from .commits import ProjectCommit, ProjectCommitManager
616
from .issues import ProjectIssue, ProjectIssueManager
717
from .merge_request_approvals import (

gitlab/v4/objects/milestones.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from gitlab import cli
22
from gitlab import exceptions as exc
3-
from gitlab.base import * # noqa
4-
from gitlab.mixins import * # noqa
3+
from gitlab.base import RESTManager, RESTObject, RESTObjectList
4+
from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin
55
from .issues import GroupIssue, GroupIssueManager, ProjectIssue, ProjectIssueManager
66
from .merge_requests import (
77
ProjectMergeRequest,

gitlab/v4/objects/namespaces.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from gitlab.base import * # noqa
2-
from gitlab.mixins import * # noqa
1+
from gitlab.base import RESTManager, RESTObject
2+
from gitlab.mixins import RetrieveMixin
33

44

55
__all__ = [

0 commit comments

Comments
 (0)