From c011d178f6c95548074ba97f3472ef459aff8744 Mon Sep 17 00:00:00 2001 From: Torben <59419684+entorb@users.noreply.github.com> Date: Thu, 28 Mar 2024 06:29:07 +0100 Subject: [PATCH] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 4 ++-- scripts/check-chapters.py | 1 + scripts/ebook/4.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7c7ef5494..e6d61e364 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.1.14" + rev: "v0.3.4" 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.38.0 + rev: v0.39.0 hooks: - id: markdownlint args: ["--disable", "MD013"] diff --git a/scripts/check-chapters.py b/scripts/check-chapters.py index 10ff4af77..57b7ee4c0 100755 --- a/scripts/check-chapters.py +++ b/scripts/check-chapters.py @@ -11,6 +11,7 @@ raise_error: true -> script exits with error, used for autobuild of releases print_diff: true : print line of issues """ + import difflib import glob import json diff --git a/scripts/ebook/4.py b/scripts/ebook/4.py index a25bea770..266aa8492 100755 --- a/scripts/ebook/4.py +++ b/scripts/ebook/4.py @@ -3,6 +3,7 @@ """ Parselify flattened .tex file. """ + import os import re import sys