Skip to content

Commit

Permalink
apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Oct 24, 2024
1 parent c66cda8 commit f6ab247
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion utils/mkdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
gs = None

from generate_last_commit_file import COMMIT_DATE_FORMAT

top_dir = os.path.abspath(os.getenv("MODULE_TOPDIR"))


def read_file(name):
try:
return Path(name).read_text()
Expand Down Expand Up @@ -119,6 +120,7 @@ def get_last_git_commit(src_dir, top_dir, addon_path, major_version):
# During GRASS GIS compilation from source code without Git
return get_git_commit_from_file(src_dir=src_dir)


def parse_git_commit(
commit,
src_dir,
Expand Down
5 changes: 1 addition & 4 deletions utils/mkhtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,7 @@ def to_title(name):
url_log = url_source.replace(tree, commits)

git_commit = get_last_git_commit(
src_dir=curdir,
top_dir=topdir,
addon_path=addon_path or None,
major_version=major
src_dir=curdir, top_dir=topdir, addon_path=addon_path or None, major_version=major
)
if git_commit["commit"] == "unknown":
date_tag = "Accessed: {date}".format(date=git_commit["date"])
Expand Down

0 comments on commit f6ab247

Please sign in to comment.