Skip to content

Commit

Permalink
Update .pre-commit-config.yaml and minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Aug 19, 2024
1 parent c622d73 commit 9ecaeba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.4.4"
rev: "v0.6.1"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -84,7 +84,7 @@ repos:
- id: text-unicode-replacement-char

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.40.0
rev: v0.41.0
hooks:
- id: markdownlint
args: ["--disable", "MD013"]
Expand Down
4 changes: 2 additions & 2 deletions scripts/check_chapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def get_list_of_chapter_files() -> list[Path]:
"""
Read hpmor.tex, extract list of (not-commented out) chapter files.
returns list of filesnames
returns list of filenames
"""
list_of_files: list[Path] = []
with Path("hpmor.tex").open(encoding="utf-8") as fh:
for line in fh.readlines():
for line in fh:
my_match = re.search(r"^.*include\{(chapters/.+?)\}.*$", line)
if my_match:
include_path = my_match.group(1)
Expand Down

0 comments on commit 9ecaeba

Please sign in to comment.