Skip to content

Commit

Permalink
Satisfy Darglint linter in darker.git
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Jan 13, 2023
1 parent 7092dd7 commit fe5bd1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/darker/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def git_rev_parse(revision: str, cwd: Path) -> str:
:param revision: The revision to get the commit hash for
:param cwd: The root of the Git repository
:return: The commit hash for ``revision`` as parsed from Git output
"""
return _git_check_output_lines(["rev-parse", revision], cwd)[0]
Expand Down Expand Up @@ -470,6 +471,7 @@ def git_get_root(path: Path) -> Optional[Path]:
:param path: A file or directory path inside the Git repository clone
:return: The root of the clone, or ``None`` if none could be found
:raises CalledProcessError: if Git exits with an unexpected error
"""
try:
Expand Down

0 comments on commit fe5bd1b

Please sign in to comment.