Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Jun 20, 2024
1 parent 3dcc349 commit 6890924
Show file tree
Hide file tree
Showing 4 changed files with 286 additions and 188 deletions.
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev1"
version = "0.0.0.dev2"
name = "GitTidy"
requires-python = ">=3.9"
requires-python = ">=3.10"
dependencies = [
"LoggerMan",
"PyShellMan"
]
1 change: 1 addition & 0 deletions src/gittidy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from gittidy.git import Git
16 changes: 16 additions & 0 deletions src/gittidy/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,19 @@ def __init__(self, path: str | _Path):
self.path = _Path(path).resolve()
super().__init__(f"No Git repository found in '{self.path}' or any parent directory.")
return


class GitTidyInputError(GitTidyError):
"""Error in the input arguments provided to Git methods."""

def __init__(self, message: str):
super().__init__(message)
return


class GitTidyOperationError(GitTidyError):
"""Error in the execution of an operation."""

def __init__(self, message: str):
super().__init__(message)
return
Loading

0 comments on commit 6890924

Please sign in to comment.