From fc6766fa424b3ec570e8832d7fe9f81c58087859 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 20:38:17 -0500 Subject: [PATCH] chore: update pre-commit hooks (#2146) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester --- .pre-commit-config.yaml | 14 +++++++------- CHANGELOG.md | 1 + pyproject.toml | 2 ++ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 42d04df9c..7a37851e1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-case-conflict - id: check-ast @@ -21,7 +21,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.28.1 + rev: 0.28.4 hooks: - id: check-github-workflows @@ -45,13 +45,13 @@ repos: additional_dependencies: [black==23.7.0] - repo: https://github.com/codespell-project/codespell - rev: "v2.2.6" + rev: "v2.3.0" hooks: - id: codespell - args: ["-L", "sur,nd"] + args: ["-L", "sur,nd,assertin"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.9.0" + rev: "v1.10.0" hooks: - id: mypy files: "^nbconvert" @@ -81,7 +81,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.5 + rev: v0.4.8 hooks: - id: ruff types_or: [python, jupyter] @@ -90,7 +90,7 @@ repos: types_or: [python, jupyter] - repo: https://github.com/scientific-python/cookie - rev: "2024.03.10" + rev: "2024.04.23" hooks: - id: sp-repo-review additional_dependencies: ["repo-review[cli]"] diff --git a/CHANGELOG.md b/CHANGELOG.md index 6109e5728..c42f0a1f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1586,6 +1586,7 @@ raw template {%- endblock in_prompt -%} """ + exporter_attr = AttrExporter() output_attr, _ = exporter_attr.from_notebook_node(nb) assert "raw template" in output_attr diff --git a/pyproject.toml b/pyproject.toml index 0f5539e2c..fd87d8cde 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -224,6 +224,8 @@ ignore = [ "SIM105", # Use `contextlib.suppress(...)` "T201", # `print` found "RUF012", # Mutable class attributes should be annotated + "UP031", # Use format specifiers instead of percent format + ] unfixable = [ "T201", # Don't touch print statements