|
3 | 3 | # This module is part of GitPython and is released under the |
4 | 4 | # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/ |
5 | 5 |
|
6 | | -# flake8: noqa |
7 | 6 | # @PydevCodeAnalysisIgnore |
8 | 7 |
|
9 | | -fromgit.excimport*# @NoMove @IgnorePep8 |
10 | | -fromtypingimportList,Optional,Sequence,Tuple,Union,TYPE_CHECKING |
11 | | -fromgit.typesimportPathLike |
12 | | - |
13 | 8 | __version__="git" |
14 | 9 |
|
| 10 | +fromtypingimportList,Optional,Sequence,Tuple,Union,TYPE_CHECKING |
| 11 | + |
15 | 12 | fromgitdb.utilimportto_hex_sha |
| 13 | +fromgit.excimport*# noqa: F403 # @NoMove @IgnorePep8 |
| 14 | +fromgit.typesimportPathLike |
16 | 15 |
|
17 | 16 | try: |
18 | 17 | fromgit.compatimportsafe_decode# @NoMove @IgnorePep8 |
19 | 18 | fromgit.configimportGitConfigParser# @NoMove @IgnorePep8 |
20 | | -fromgit.objectsimport*# @NoMove @IgnorePep8 |
21 | | -fromgit.refsimport*# @NoMove @IgnorePep8 |
22 | | -fromgit.diffimport*# @NoMove @IgnorePep8 |
23 | | -fromgit.dbimport*# @NoMove @IgnorePep8 |
| 19 | +fromgit.objectsimport*#noqa: F403 #@NoMove @IgnorePep8 |
| 20 | +fromgit.refsimport*#noqa: F403 #@NoMove @IgnorePep8 |
| 21 | +fromgit.diffimport*#noqa: F403 #@NoMove @IgnorePep8 |
| 22 | +fromgit.dbimport*#noqa: F403 #@NoMove @IgnorePep8 |
24 | 23 | fromgit.cmdimportGit# @NoMove @IgnorePep8 |
25 | 24 | fromgit.repoimportRepo# @NoMove @IgnorePep8 |
26 | | -fromgit.remoteimport*# @NoMove @IgnorePep8 |
27 | | -fromgit.indeximport*# @NoMove @IgnorePep8 |
| 25 | +fromgit.remoteimport*#noqa: F403 #@NoMove @IgnorePep8 |
| 26 | +fromgit.indeximport*#noqa: F403 #@NoMove @IgnorePep8 |
28 | 27 | fromgit.utilimport (# @NoMove @IgnorePep8 |
29 | 28 | LockFile, |
30 | 29 | BlockingLockFile, |
|
33 | 32 | remove_password_if_present, |
34 | 33 | rmtree, |
35 | 34 | ) |
36 | | -exceptGitErroras_exc: |
| 35 | +exceptGitErroras_exc:# noqa: F405 |
37 | 36 | raiseImportError("%s: %s"% (_exc.__class__.__name__,_exc))from_exc |
38 | 37 |
|
39 | 38 | # __all__ must be statically defined by py.typed support |
40 | 39 | # __all__ = [name for name, obj in locals().items() if not (name.startswith("_") or inspect.ismodule(obj))] |
41 | | -__all__= [ |
| 40 | +__all__= [# noqa: F405 |
42 | 41 | "Actor", |
43 | 42 | "AmbiguousObjectName", |
44 | 43 | "BadName", |
@@ -127,7 +126,7 @@ def refresh(path: Optional[PathLike] = None) -> None: |
127 | 126 |
|
128 | 127 | ifnotGit.refresh(path=path): |
129 | 128 | return |
130 | | -ifnotFetchInfo.refresh(): |
| 129 | +ifnotFetchInfo.refresh():# noqa: F405 |
131 | 130 | return# type: ignore [unreachable] |
132 | 131 |
|
133 | 132 | GIT_OK=True |
|