Skip to content

Commit fa153b2

Browse files
committed
Detect and fix circular imports
1 parent 6b7bdb3 commit fa153b2

33 files changed

Lines changed: 110 additions & 110 deletions

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
command: ci/checks/run-all-checks.sh
7272
- run:
7373
name: Check code style
74-
command: tox -e isort-check,flake8-check,typos-check,vulture-check
74+
command: tox -e isort-check,flake8-check,typos-check,vulture-check,cyclic-import-check
7575
- run:
7676
name: Verify docs
7777
command: tox -e py-docs-check,sphinx-man-check,sphinx-html
@@ -298,7 +298,7 @@ only_special_branches: &only_special_branches
298298
filters:
299299
branches:
300300
only:
301-
- "/.*(aur|ci|dependabot.pip|deploy|dry.run|hotfix|macos|nix|publish|release|windows).*/"
301+
- "/.*(aur|ci[/-]|dependabot.pip|deploy|dry.run|hotfix|macos|nix|publish|release|windows).*/"
302302
- "develop"
303303
- "master"
304304

docs/man/git-machete.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
2828
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
2929
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
3030
..
31-
.TH "GIT-MACHETE" "1" "Mar 12, 2026" "" "git-machete"
31+
.TH "GIT-MACHETE" "1" "Mar 30, 2026" "" "git-machete"
3232
.SH NAME
3333
git-machete \- git-machete 3.39.3
3434
.sp

git_machete/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
from git_machete.github import GITHUB_CLIENT_SPEC
3232
from git_machete.gitlab import GITLAB_CLIENT_SPEC
3333

34-
from .exceptions import (ExitCode, InteractionStopped, MacheteException,
35-
UnderlyingGitException, UnexpectedMacheteException)
3634
from .generated_docs import long_docs, short_docs
3735
from .git_operations import AnyRevision, GitContext, LocalBranchShortName
38-
from .utils import bold, fmt, green_ok, print_no_newline, underline, warn
36+
from .utils import (ExitCode, InteractionStopped, MacheteException,
37+
UnderlyingGitException, UnexpectedMacheteException, bold,
38+
fmt, green_ok, print_no_newline, underline, warn)
3939

4040
T = TypeVar('T')
4141

git_machete/client/advance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from git_machete.client.base import MacheteClient
22
from git_machete.config import SquashMergeDetection
3-
from git_machete.exceptions import MacheteException
43
from git_machete.git_operations import (GitContext, LocalBranchShortName,
54
SyncToRemoteStatus)
6-
from git_machete.utils import bold, flat_map, get_pretty_choices, warn
5+
from git_machete.utils import (MacheteException, bold, flat_map,
6+
get_pretty_choices, warn)
77

88

99
class AdvanceMacheteClient(MacheteClient):

git_machete/client/base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
from git_machete.config import MacheteConfig, SquashMergeDetection
1414
from git_machete.constants import (INITIAL_COMMIT_COUNT_FOR_LOG,
1515
TOTAL_COMMIT_COUNT_FOR_LOG)
16-
from git_machete.exceptions import (InteractionStopped, MacheteException,
17-
UnexpectedMacheteException)
1816
from git_machete.git_operations import (HEAD, AnyBranchName, AnyRevision,
1917
BranchPair, ForkPointOverrideData,
2018
FullCommitHash, GitContext,
2119
LocalBranchShortName,
2220
RemoteBranchShortName,
2321
SyncToRemoteStatus)
24-
from git_machete.utils import (bold, debug, dim, excluding, flat_map, fmt,
25-
get_pretty_choices, get_second,
26-
join_paths_posix, relpath_posix, tupled, warn)
22+
from git_machete.utils import (InteractionStopped, MacheteException,
23+
UnexpectedMacheteException, bold, debug, dim,
24+
excluding, flat_map, fmt, get_pretty_choices,
25+
get_second, join_paths_posix, relpath_posix,
26+
tupled, warn)
2727

2828

2929
class PickRoot(Enum):

git_machete/client/discover.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
from git_machete.client.status import StatusMacheteClient
77
from git_machete.config import SquashMergeDetection
88
from git_machete.constants import DISCOVER_DEFAULT_FRESH_BRANCH_COUNT
9-
from git_machete.exceptions import MacheteException
109
from git_machete.git_operations import LocalBranchShortName
11-
from git_machete.utils import (bold, debug, excluding, get_pretty_choices,
12-
slurp_file, tupled, warn)
10+
from git_machete.utils import (MacheteException, bold, debug, excluding,
11+
get_pretty_choices, slurp_file, tupled, warn)
1312

1413

1514
class DiscoverMacheteClient(StatusMacheteClient):

git_machete/client/fork_point.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from git_machete.client.base import MacheteClient
2-
from git_machete.exceptions import MacheteException
32
from git_machete.git_operations import AnyRevision, LocalBranchShortName
4-
from git_machete.utils import bold, fmt
3+
from git_machete.utils import MacheteException, bold, fmt
54

65

76
class ForkPointMacheteClient(MacheteClient):

git_machete/client/go_interactive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
from git_machete import utils
1313
from git_machete.client.status import (StatusData, StatusFlags,
1414
StatusMacheteClient)
15-
from git_machete.exceptions import MacheteException, UnexpectedMacheteException
1615
from git_machete.git_operations import LocalBranchShortName
17-
from git_machete.utils import bold, index_or_none, warn
16+
from git_machete.utils import (MacheteException, UnexpectedMacheteException,
17+
bold, index_or_none, warn)
1818

1919

2020
class GoInteractiveMacheteClient(StatusMacheteClient):

git_machete/client/go_show.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from typing import List, Optional
22

33
from git_machete.client.base import MacheteClient, PickRoot
4-
from git_machete.exceptions import MacheteException, UnexpectedMacheteException
54
from git_machete.git_operations import LocalBranchShortName
5+
from git_machete.utils import MacheteException, UnexpectedMacheteException
66

77

88
class GoShowMacheteClient(MacheteClient):

git_machete/client/slide_out.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from git_machete.client.base import MacheteClient
44
from git_machete.config import SquashMergeDetection
5-
from git_machete.exceptions import MacheteException
65
from git_machete.git_operations import AnyRevision, LocalBranchShortName
7-
from git_machete.utils import bold, fmt, green_ok, print_no_newline
6+
from git_machete.utils import (MacheteException, bold, fmt, green_ok,
7+
print_no_newline)
88

99

1010
class SlideOutMacheteClient(MacheteClient):

0 commit comments

Comments
 (0)