Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
saimn committed Sep 30, 2024
1 parent 1a78820 commit c00e067
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repos:
exclude: ".*(galleria|photoswipe|jquery|leaflet).*$"

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.2
rev: v0.6.8
hooks:
- id: ruff
args: [ --fix, --show-fixes, --exit-non-zero-on-fix ]
Expand Down
4 changes: 3 additions & 1 deletion src/sigal/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ def generate_context(self, album):
"index_title": self.index_title,
"settings": self.settings,
"sigal_link": sigal_link,
"generated_timestamp": datetime.now().strftime(self.settings['datetime_format']),
"generated_timestamp": datetime.now().strftime(
self.settings["datetime_format"]
),
"theme": {
"name": os.path.basename(self.theme),
"url": url_from_path(os.path.relpath(self.theme_path, album.dst_path)),
Expand Down

0 comments on commit c00e067

Please sign in to comment.