Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc83eaf4

Browse files
chore: remove usage of 'from ... import *'
In gitlab/v4/objects/*.py remove usage of: * from gitlab.base import * * from gitlab.mixins import *Change them to: * from gitlab.base import CLASS_NAME * from gitlab.mixins import CLASS_NAMEProgrammatically update code to explicitly import needed classes only.After the change the output of: $ flake8 gitlab/v4/objects/*py | grep 'REST\|Mixin'Is empty. Before many messages about unable to determine if it was avalid name.
1 parenta7ec67f commitc83eaf4

File tree

57 files changed

+244
-114
lines changed

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‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
fromgitlab.baseimport*# noqa
2-
fromgitlab.mixinsimport*# noqa
1+
fromgitlab.baseimportRESTManager,RESTObject
2+
fromgitlab.mixinsimport (
3+
AccessRequestMixin,
4+
CreateMixin,
5+
DeleteMixin,
6+
ListMixin,
7+
ObjectDeleteMixin,
8+
)
39

410

511
__all__= [

‎gitlab/v4/objects/appearance.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fromgitlabimportexceptionsasexc
2-
fromgitlab.baseimport*# noqa
3-
fromgitlab.mixinsimport*# noqa
2+
fromgitlab.baseimportRESTManager,RESTObject
3+
fromgitlab.mixinsimportGetWithoutIdMixin,SaveMixin,UpdateMixin
44

55

66
__all__= [

‎gitlab/v4/objects/applications.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
fromgitlab.baseimport*# noqa
2-
fromgitlab.mixinsimport*# noqa
1+
fromgitlab.baseimportRESTManager,RESTObject
2+
fromgitlab.mixinsimportCreateMixin,DeleteMixin,ListMixin,ObjectDeleteMixin
33

44
__all__= [
55
"Application",

‎gitlab/v4/objects/audit_events.py‎

Lines changed: 2 additions & 2 deletions
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-
fromgitlab.baseimport*# noqa
7-
fromgitlab.mixinsimport*# noqa
6+
fromgitlab.baseimportRESTManager,RESTObject
7+
fromgitlab.mixinsimportRetrieveMixin
88

99
__all__= [
1010
"ProjectAudit",

‎gitlab/v4/objects/award_emojis.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
fromgitlab.baseimport*# noqa
2-
fromgitlab.mixinsimport*# noqa
1+
fromgitlab.baseimportRESTManager,RESTObject
2+
fromgitlab.mixinsimportNoUpdateMixin,ObjectDeleteMixin
33

44

55
__all__= [

‎gitlab/v4/objects/badges.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
fromgitlab.baseimport*# noqa
2-
fromgitlab.mixinsimport*# noqa
1+
fromgitlab.baseimportRESTManager,RESTObject
2+
fromgitlab.mixinsimportBadgeRenderMixin,CRUDMixin,ObjectDeleteMixin,SaveMixin
33

44

55
__all__= [

‎gitlab/v4/objects/boards.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
fromgitlab.baseimport*# noqa
2-
fromgitlab.mixinsimport*# noqa
1+
fromgitlab.baseimportRESTManager,RESTObject
2+
fromgitlab.mixinsimportCRUDMixin,ObjectDeleteMixin,SaveMixin
33

44

55
__all__= [

‎gitlab/v4/objects/branches.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
fromgitlabimportcli
22
fromgitlabimportexceptionsasexc
3-
fromgitlab.baseimport*# noqa
4-
fromgitlab.mixinsimport*# noqa
3+
fromgitlab.baseimportRESTManager,RESTObject
4+
fromgitlab.mixinsimportNoUpdateMixin,ObjectDeleteMixin
55

66

77
__all__= [

‎gitlab/v4/objects/broadcast_messages.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
fromgitlab.baseimport*# noqa
2-
fromgitlab.mixinsimport*# noqa
1+
fromgitlab.baseimportRESTManager,RESTObject
2+
fromgitlab.mixinsimportCRUDMixin,ObjectDeleteMixin,SaveMixin
33

44

55
__all__= [

‎gitlab/v4/objects/clusters.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fromgitlabimportexceptionsasexc
2-
fromgitlab.baseimport*# noqa
3-
fromgitlab.mixinsimport*# noqa
2+
fromgitlab.baseimportRESTManager,RESTObject
3+
fromgitlab.mixinsimportCRUDMixin,CreateMixin,ObjectDeleteMixin,SaveMixin
44

55

66
__all__= [

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp