diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a70b5e72e..34623ee02 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] @@ -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"] diff --git a/scripts/check_chapters.py b/scripts/check_chapters.py index b9dc9fb29..c01ffbd51 100755 --- a/scripts/check_chapters.py +++ b/scripts/check_chapters.py @@ -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)