@@ -5,7 +5,7 @@ | |||
| 5 | 5 | # the BSD License: http://www.opensource.org/licenses/bsd-license.php | |
| 6 | 6 | # flake8: noqa | |
| 7 | 7 | #@PydevCodeAnalysisIgnore | |
| 8 | - from git.exc import * # @NoMove @IgnorePep8 | ||
| 8 | + from git.exc import GitError, GitCommandError, GitCommandNotFound, UnmergedEntriesError, CheckoutError, InvalidGitRepositoryError, NoSuchPathError, BadName # @NoMove @IgnorePep8 | ||
| 9 | 9 | import inspect | |
| 10 | 10 | import os | |
| 11 | 11 | import sys | |
@@ -39,16 +39,16 @@ def _init_externals() -> None: | |||
| 39 | 39 | #{ Imports | |
| 40 | 40 | ||
| 41 | 41 | try: | |
| 42 | - from git.config import GitConfigParser # @NoMove @IgnorePep8 | ||
| 43 | - from git.objects import * # @NoMove @IgnorePep8 | ||
| 44 | - from git.refs import * # @NoMove @IgnorePep8 | ||
| 45 | - from git.diff import * # @NoMove @IgnorePep8 | ||
| 46 | - from git.db import * # @NoMove @IgnorePep8 | ||
| 47 | - from git.cmd import Git # @NoMove @IgnorePep8 | ||
| 48 | - from git.repo import Repo # @NoMove @IgnorePep8 | ||
| 49 | - from git.remote import * # @NoMove @IgnorePep8 | ||
| 50 | - from git.index import * # @NoMove @IgnorePep8 | ||
| 51 | - from git.util import ( # @NoMove @IgnorePep8 | ||
| 42 | + from git.config import GitConfigParser # @NoMove @IgnorePep8 | ||
| 43 | + from git.objects import Blob, Commit, Object, Submodule, Tree # @NoMove @IgnorePep8 | ||
| 44 | + from git.refs import Head, Reference, RefLog, RemoteReference, SymbolicReference, TagReference # @NoMove @IgnorePep8 | ||
| 45 | + from git.diff import Diff, DiffIndex, NULL_TREE # @NoMove @IgnorePep8 | ||
| 46 | + from git.db import GitCmdObjectDB, GitDB # @NoMove @IgnorePep8 | ||
| 47 | + from git.cmd import Git # @NoMove @IgnorePep8 | ||
| 48 | + from git.repo import Repo # @NoMove @IgnorePep8 | ||
| 49 | + from git.remote import FetchInfo, PushInfo, Remote, RemoteProgress # @NoMove @IgnorePep8 | ||
| 50 | + from git.index import BlobFilter, IndexEntry, IndexFile # @NoMove @IgnorePep8 | ||
| 51 | + from git.util import ( # @NoMove @IgnorePep8 | ||
| 52 | 52 | LockFile, | |
| 53 | 53 | BlockingLockFile, | |
| 54 | 54 | Stats, | |
@@ -5,8 +5,7 @@ | |||
| 5 | 5 | # the BSD License: http://www.opensource.org/licenses/bsd-license.php | |
| 6 | 6 | """ Module containing all exceptions thrown throughout the git package, """ | |
| 7 | 7 | ||
| 8 | - from gitdb.exc import BadName # NOQA @UnusedWildImport skipcq: PYL-W0401, PYL-W0614 | ||
| 9 | - from gitdb.exc import * # NOQA @UnusedWildImport skipcq: PYL-W0401, PYL-W0614 | ||
| 8 | + from gitdb.exc import BadName, BadObject # NOQA @UnusedWildImport skipcq: PYL-W0401, PYL-W0614 | ||
| 10 | 9 | from git.compat import safe_decode | |
| 11 | 10 | ||
| 12 | 11 | # typing ---------------------------------------------------- | |
@@ -1,4 +1,4 @@ | |||
| 1 | 1 | """Initialize the index package""" | |
| 2 | 2 | # flake8: noqa | |
| 3 | - from .base import * | ||
| 4 | - from .typ import * | ||
| 3 | + from .base import IndexFile | ||
| 4 | + from .typ import IndexEntry, BlobFilter | ||
@@ -4,14 +4,14 @@ | |||
| 4 | 4 | # flake8: noqa | |
| 5 | 5 | import inspect | |
| 6 | 6 | ||
| 7 | - from .base import * | ||
| 8 | - from .blob import * | ||
| 9 | - from .commit import * | ||
| 7 | + from .base import Object, IndexObject | ||
| 8 | + from .blob import Blob | ||
| 9 | + from .commit import Commit | ||
| 10 | 10 | from .submodule import util as smutil | |
| 11 | - from .submodule.base import * | ||
| 12 | - from .submodule.root import * | ||
| 13 | - from .tag import * | ||
| 14 | - from .tree import * | ||
| 11 | + from .submodule.base import Submodule, UpdateProgress | ||
| 12 | + from .submodule.root import RootModule, RootUpdateProgress | ||
| 13 | + from .tag import TagObject | ||
| 14 | + from .tree import Tree | ||
| 15 | 15 | # Fix import dependency - add IndexObject to the util module, so that it can be | |
| 16 | 16 | # imported by the submodule.base | |
| 17 | 17 | smutil.IndexObject = IndexObject # type: ignore[attr-defined] | |
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | # flake8: noqa | |
| 2 | 2 | # import all modules in order, fix the names they require | |
| 3 | - from .symbolic import * | ||
| 4 | - from .reference import * | ||
| 5 | - from .head import * | ||
| 6 | - from .tag import * | ||
| 7 | - from .remote import * | ||
| 3 | + from .symbolic import SymbolicReference | ||
| 4 | + from .reference import Reference | ||
| 5 | + from .head import HEAD, Head | ||
| 6 | + from .tag import TagReference | ||
| 7 | + from .remote import RemoteReference | ||
| 8 | 8 | ||
| 9 | - from .log import * | ||
| 9 | + from .log import RefLogEntry, RefLog | ||
@@ -4,9 +4,12 @@ | |||
| 4 | 4 | # This module is part of GitPython and is released under | |
| 5 | 5 | # the BSD License: http://www.opensource.org/licenses/bsd-license.php | |
| 6 | 6 | ||
| 7 | - # flake8: noqa | ||
| 8 | 7 | import inspect | |
| 9 | - from .helper import * | ||
| 8 | + | ||
| 9 | + from .helper import (GIT_DAEMON_PORT, SkipTest, StringProcessAdapter, TestBase, | ||
| 10 | + TestCase, fixture, fixture_path, | ||
| 11 | + with_rw_and_rw_remote_repo, with_rw_directory, | ||
| 12 | + with_rw_repo) | ||
| 10 | 13 | ||
| 11 | 14 | __all__ = [name for name, obj in locals().items() | |
| 12 | 15 | if not (name.startswith('_') or inspect.ismodule(obj))] | |
0 commit comments