Skip to content

Commit

Permalink
Change: Mark pontos.git.git as private module explicitly
Browse files Browse the repository at this point in the history
The `pontos.git.git` module should not be considered as a public API of
pontos. Therefore rename it to `pontos.git._git` to user Python naming
convention to mark it as a private module.
  • Loading branch information
bjoernricks committed Jan 18, 2024
1 parent 42ff071 commit a73513e
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 85 deletions.
2 changes: 1 addition & 1 deletion pontos/git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#

from .git import (
from ._git import (
DEFAULT_TAG_SORT_SUFFIX,
ConfigScope,
Git,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pontos/release/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from rich.progress import TextColumn

from pontos.errors import PontosError
from pontos.git.git import GitError
from pontos.git import GitError
from pontos.github.api import GitHubAsyncRESTApi
from pontos.helper import AsyncDownloadProgressIterable
from pontos.release.command import AsyncCommand
Expand Down
2 changes: 1 addition & 1 deletion pontos/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from pathlib import Path
from typing import Any, AsyncIterator, Awaitable, Generator, Iterable, Optional

from pontos.git.git import exec_git
from pontos.git._git import exec_git
from pontos.helper import add_sys_path, ensure_unload_module, unload_module

__all__ = (
Expand Down
3 changes: 1 addition & 2 deletions pontos/version/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

from typing import Iterator, Optional

from pontos.git import Git, TagSort
from pontos.git.git import DEFAULT_TAG_SORT_SUFFIX
from pontos.git import DEFAULT_TAG_SORT_SUFFIX, Git, TagSort
from pontos.version.errors import VersionError

from .version import ParseVersionFuncType, Version
Expand Down
Loading

0 comments on commit a73513e

Please sign in to comment.