| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 630901b commit ff21eb6
24 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,18 +18,18 @@ | |||
| 18 | 18 | ||
| 19 | 19 | import warnings | |
| 20 | 20 | ||
| 21 | - import gitlab.config | ||
| 22 | - from gitlab.__version__ import ( | ||
| 21 | + import gitlab.config # noqa: F401 | ||
| 22 | + from gitlab.__version__ import ( # noqa: F401 | ||
| 23 | 23 | __author__, | |
| 24 | 24 | __copyright__, | |
| 25 | 25 | __email__, | |
| 26 | 26 | __license__, | |
| 27 | 27 | __title__, | |
| 28 | 28 | __version__, | |
| 29 | 29 | ) | |
| 30 | - from gitlab.client import Gitlab, GitlabList | ||
| 31 | - from gitlab.const import * # noqa | ||
| 32 | - from gitlab.exceptions import * # noqa | ||
| 30 | + from gitlab.client import Gitlab, GitlabList # noqa: F401 | ||
| 31 | + from gitlab.const import * # noqa: F401,F403 | ||
| 32 | + from gitlab.exceptions import * # noqa: F401,F403 | ||
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | 35 | warnings.filterwarnings("default", category=DeprecationWarning, module="^gitlab") | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ | |||
| 23 | 23 | import sys | |
| 24 | 24 | from typing import Any, Callable, Dict, Optional, Tuple, Union | |
| 25 | 25 | ||
| 26 | - import gitlab.config | ||
| 26 | + import gitlab.config # noqa: F401 | ||
| 27 | 27 | ||
| 28 | 28 | camel_re = re.compile("(.)([A-Z])") | |
| 29 | 29 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,6 @@ | |||
| 22 | 22 | Dict, | |
| 23 | 23 | List, | |
| 24 | 24 | Optional, | |
| 25 | - Tuple, | ||
| 26 | 25 | Type, | |
| 27 | 26 | TYPE_CHECKING, | |
| 28 | 27 | Union, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,10 @@ | |||
| 1 | 1 | """ | |
| 2 | 2 | GitLab API: https://docs.gitlab.com/ee/api/jobs.html#list-pipeline-bridges | |
| 3 | 3 | """ | |
| 4 | - import re | ||
| 5 | - | ||
| 6 | 4 | import pytest | |
| 7 | 5 | import responses | |
| 8 | 6 | ||
| 9 | - from gitlab.v4.objects import Project, ProjectPipelineBridge | ||
| 7 | + from gitlab.v4.objects import ProjectPipelineBridge | ||
| 10 | 8 | ||
| 11 | 9 | ||
| 12 | 10 | @pytest.fixture | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,8 +4,6 @@ | |||
| 4 | 4 | import pytest | |
| 5 | 5 | import responses | |
| 6 | 6 | ||
| 7 | - from gitlab.v4.objects import Project | ||
| 8 | - | ||
| 9 | 7 | ||
| 10 | 8 | @pytest.fixture | |
| 11 | 9 | def resp_update_submodule(): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,7 +16,6 @@ | |||
| 16 | 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | 17 | ||
| 18 | 18 | import os | |
| 19 | - import unittest | ||
| 20 | 19 | from textwrap import dedent | |
| 21 | 20 | ||
| 22 | 21 | import mock | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | 4 | from httmock import HTTMock, urlmatch, response | |
| 5 | 5 | ||
| 6 | - from gitlab import * | ||
| 6 | + from gitlab import GitlabHttpError, GitlabList, GitlabParsingError | ||
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | 9 | def test_build_url(gl): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | from gitlab import exceptions as exc | |
| 3 | 3 | from gitlab.base import RequiredOptional, RESTManager, RESTObject | |
| 4 | 4 | from gitlab.mixins import CreateMixin, ListMixin, RefreshMixin, RetrieveMixin | |
| 5 | - from .discussions import ProjectCommitDiscussionManager | ||
| 5 | + from .discussions import ProjectCommitDiscussionManager # noqa: F401 | ||
| 6 | 6 | ||
| 7 | 7 | ||
| 8 | 8 | __all__ = [ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | from gitlab.base import RequiredOptional, RESTManager, RESTObject | |
| 2 | 2 | from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixin | |
| 3 | - from .notes import ( | ||
| 3 | + from .notes import ( # noqa: F401 | ||
| 4 | 4 | ProjectCommitDiscussionNoteManager, | |
| 5 | 5 | ProjectIssueDiscussionNoteManager, | |
| 6 | 6 | ProjectMergeRequestDiscussionNoteManager, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ | |||
| 10 | 10 | SaveMixin, | |
| 11 | 11 | UpdateMixin, | |
| 12 | 12 | ) | |
| 13 | - from .events import GroupEpicResourceLabelEventManager | ||
| 13 | + from .events import GroupEpicResourceLabelEventManager # noqa: F401 | ||
| 14 | 14 | ||
| 15 | 15 | ||
| 16 | 16 | __all__ = [ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments