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

Commitff21eb6

Browse files
chore: fix F401 errors reported by flake8
F401: Module imported but unusedhttps://www.flake8rules.com/rules/F401.html
1 parent630901b commitff21eb6

24 files changed

+93
-101
lines changed

‎gitlab/__init__.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818

1919
importwarnings
2020

21-
importgitlab.config
22-
fromgitlab.__version__import (
21+
importgitlab.config# noqa: F401
22+
fromgitlab.__version__import (# noqa: F401
2323
__author__,
2424
__copyright__,
2525
__email__,
2626
__license__,
2727
__title__,
2828
__version__,
2929
)
30-
fromgitlab.clientimportGitlab,GitlabList
31-
fromgitlab.constimport*# noqa
32-
fromgitlab.exceptionsimport*# noqa
30+
fromgitlab.clientimportGitlab,GitlabList# noqa: F401
31+
fromgitlab.constimport*# noqa: F401,F403
32+
fromgitlab.exceptionsimport*# noqa: F401,F403
3333

3434

3535
warnings.filterwarnings("default",category=DeprecationWarning,module="^gitlab")

‎gitlab/cli.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
importsys
2424
fromtypingimportAny,Callable,Dict,Optional,Tuple,Union
2525

26-
importgitlab.config
26+
importgitlab.config# noqa: F401
2727

2828
camel_re=re.compile("(.)([A-Z])")
2929

‎gitlab/mixins.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
Dict,
2323
List,
2424
Optional,
25-
Tuple,
2625
Type,
2726
TYPE_CHECKING,
2827
Union,

‎gitlab/tests/objects/test_bridges.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
"""
22
GitLab API: https://docs.gitlab.com/ee/api/jobs.html#list-pipeline-bridges
33
"""
4-
importre
5-
64
importpytest
75
importresponses
86

9-
fromgitlab.v4.objectsimportProject,ProjectPipelineBridge
7+
fromgitlab.v4.objectsimportProjectPipelineBridge
108

119

1210
@pytest.fixture

‎gitlab/tests/objects/test_submodules.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
importpytest
55
importresponses
66

7-
fromgitlab.v4.objectsimportProject
8-
97

108
@pytest.fixture
119
defresp_update_submodule():

‎gitlab/tests/test_config.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

1818
importos
19-
importunittest
2019
fromtextwrapimportdedent
2120

2221
importmock

‎gitlab/tests/test_gitlab_http_methods.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
fromhttmockimportHTTMock,urlmatch,response
55

6-
fromgitlabimport*
6+
fromgitlabimportGitlabHttpError,GitlabList,GitlabParsingError
77

88

99
deftest_build_url(gl):

‎gitlab/v4/objects/commits.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
fromgitlabimportexceptionsasexc
33
fromgitlab.baseimportRequiredOptional,RESTManager,RESTObject
44
fromgitlab.mixinsimportCreateMixin,ListMixin,RefreshMixin,RetrieveMixin
5-
from .discussionsimportProjectCommitDiscussionManager
5+
from .discussionsimportProjectCommitDiscussionManager# noqa: F401
66

77

88
__all__= [

‎gitlab/v4/objects/discussions.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fromgitlab.baseimportRequiredOptional,RESTManager,RESTObject
22
fromgitlab.mixinsimportCreateMixin,RetrieveMixin,SaveMixin,UpdateMixin
3-
from .notesimport (
3+
from .notesimport (# noqa: F401
44
ProjectCommitDiscussionNoteManager,
55
ProjectIssueDiscussionNoteManager,
66
ProjectMergeRequestDiscussionNoteManager,

‎gitlab/v4/objects/epics.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
SaveMixin,
1111
UpdateMixin,
1212
)
13-
from .eventsimportGroupEpicResourceLabelEventManager
13+
from .eventsimportGroupEpicResourceLabelEventManager# noqa: F401
1414

1515

1616
__all__= [

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp