Skip to content

Commit

Permalink
Change: Mark pontos.git.status as private module explicitly
Browse files Browse the repository at this point in the history
The `pontos.git.status` module should not be considered as a public API of
pontos. Therefore rename it to `pontos.git._status` to user Python naming
convention to mark it as a private module.
  • Loading branch information
bjoernricks committed Jan 18, 2024
1 parent a73513e commit db91dbe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pontos/git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
MergeStrategy,
TagSort,
)
from .status import Status, StatusEntry
from ._status import Status, StatusEntry

__all__ = (
"DEFAULT_TAG_SORT_SUFFIX",
Expand Down
3 changes: 2 additions & 1 deletion pontos/git/_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
)

from pontos.errors import PontosError
from pontos.git.status import StatusEntry, parse_git_status

from ._status import StatusEntry, parse_git_status

DEFAULT_TAG_SORT_SUFFIX = [
"-alpha",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/git/test_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import unittest
from pathlib import Path

from pontos.git.status import Status, StatusEntry, parse_git_status
from pontos.git._status import Status, StatusEntry, parse_git_status


class StatusEntryTestCase(unittest.TestCase):
Expand Down

0 comments on commit db91dbe

Please sign in to comment.