Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exclude: |
)$
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.2
rev: v0.15.10
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -21,7 +21,7 @@ repos:
- id: check-added-large-files
- id: check-yaml
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
rev: v2.4.2
hooks:
- id: codespell
args: ["--ignore-words-list", "crate,releas", "--skip", "*.svg"]
Expand Down
2 changes: 1 addition & 1 deletion src/pharaoh/templating/second_level/template_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def join_path(self, template: str, parent: str) -> str:
# In this case under Python 3.7, the following parent.is_dir() is failing because os.stat
# does not allow <> in the file path, Python 3.9 does, apparently.
# So we split off the suffix after <> (which would be done anyway using the "parent.parent" statement).
parent = parent.split("<>")[0]
parent = parent.split("<>", maxsplit=1)[0]
parent_path = Path(parent)
if not parent_path.is_dir():
parent_path = parent_path.parent
Expand Down
Loading