From 67ffda7ac08b9d5bdc9dc5fa9cf78cda9599f240 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Sep 2025 19:01:34 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.7 → v0.12.11](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.7...v0.12.11) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 516a9d44..fe96070f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-yaml - id: end-of-file-fixer @@ -18,7 +18,7 @@ repos: exclude: ".ipynb" - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.7 + rev: v0.12.11 hooks: - id: ruff-check args: ["--fix"] From 2ad1d4fa7297e852f3231fff82979bae08a405c7 Mon Sep 17 00:00:00 2001 From: Hameer Abbasi <2190658+hameerabbasi@users.noreply.github.com> Date: Tue, 2 Sep 2025 09:38:50 +0200 Subject: [PATCH 2/2] Remove `fix-encoding-pragma`. --- .pre-commit-config.yaml | 52 ++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fe96070f..0391d39e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,32 +1,30 @@ repos: -- repo: https://github.com/pre-commit/pre-commit-hooks + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - - id: check-yaml - - id: end-of-file-fixer - - id: trailing-whitespace - - id: fix-byte-order-marker - - id: destroyed-symlinks - - id: fix-encoding-pragma - args: ["--remove"] - - id: mixed-line-ending - - id: name-tests-test - args: ["--pytest-test-first"] - - id: no-commit-to-branch - - id: pretty-format-json - args: ["--autofix", "--no-ensure-ascii"] - exclude: ".ipynb" + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - id: fix-byte-order-marker + - id: destroyed-symlinks + - id: mixed-line-ending + - id: name-tests-test + args: ["--pytest-test-first"] + - id: no-commit-to-branch + - id: pretty-format-json + args: ["--autofix", "--no-ensure-ascii"] + exclude: ".ipynb" -- repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.11 - hooks: - - id: ruff-check - args: ["--fix"] - types_or: [ python, pyi, jupyter ] - - id: ruff-format - types_or: [ python, pyi, jupyter ] + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.12.11 + hooks: + - id: ruff-check + args: ["--fix"] + types_or: [python, pyi, jupyter] + - id: ruff-format + types_or: [python, pyi, jupyter] -- repo: https://github.com/kynan/nbstripout - rev: 0.8.1 - hooks: - - id: nbstripout + - repo: https://github.com/kynan/nbstripout + rev: 0.8.1 + hooks: + - id: nbstripout