From d7d4014bbd076788030731f2acf1937f64263169 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:49:06 +0000 Subject: [PATCH] Chore(deps): Bump the pre-commit-dependencies group with 4 updates (#14636) * Chore(deps): Bump the pre-commit-dependencies group with 4 updates Bumps the pre-commit-dependencies group with 4 updates: [https://github.com/rbubley/mirrors-prettier](https://github.com/rbubley/mirrors-prettier), prettier, [https://github.com/astral-sh/ruff-pre-commit](https://github.com/astral-sh/ruff-pre-commit) and [https://github.com/tox-dev/pyproject-fmt](https://github.com/tox-dev/pyproject-fmt). Updates `https://github.com/rbubley/mirrors-prettier` from v3.9.9 to 3.9.10 - [Commits](https://github.com/rbubley/mirrors-prettier/compare/v3.9.9...v3.9.10) Updates `prettier` from 3.9.9 to 3.9.10 Updates `https://github.com/astral-sh/ruff-pre-commit` from v0.16.9 to 0.17.2 - [Release notes](https://github.com/astral-sh/ruff-pre-commit/releases) - [Commits](https://github.com/astral-sh/ruff-pre-commit/compare/v0.16.9...v0.17.2) Updates `https://github.com/tox-dev/pyproject-fmt` from v2.29.4 to 2.30.3 - [Release notes](https://github.com/tox-dev/pyproject-fmt/releases) - [Commits](https://github.com/tox-dev/pyproject-fmt/compare/v2.29.4...v2.30.3) --- updated-dependencies: - dependency-name: https://github.com/rbubley/mirrors-prettier dependency-version: 3.9.10 dependency-type: direct:production dependency-group: pre-commit-dependencies - dependency-name: prettier dependency-version: 3.9.10 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: pre-commit-dependencies - dependency-name: https://github.com/astral-sh/ruff-pre-commit dependency-version: 0.17.2 dependency-type: direct:production dependency-group: pre-commit-dependencies - dependency-name: https://github.com/tox-dev/pyproject-fmt dependency-version: 2.30.3 dependency-type: direct:production dependency-group: pre-commit-dependencies ... Signed-off-by: dependabot[bot] * Linting fixes --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: stumpylog <797416+stumpylog@users.noreply.github.com> --- .pre-commit-config.yaml | 8 ++++---- pyproject.toml | 7 +------ src/documents/consumer.py | 8 ++------ 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d037198abb..a25eaa760c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: - json # See https://github.com/prettier/prettier/issues/15742 for the fork reason - repo: https://github.com/rbubley/mirrors-prettier - rev: 'v3.9.9' + rev: 'v3.9.10' hooks: - id: prettier types_or: @@ -46,16 +46,16 @@ repos: - ts - markdown additional_dependencies: - - prettier@3.9.9 + - prettier@3.9.10 - 'prettier-plugin-organize-imports@4.3.0' # Python hooks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.9 + rev: v0.17.2 hooks: - id: ruff-check - id: ruff-format - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.29.4" + rev: "v2.30.3" hooks: - id: pyproject-fmt additional_dependencies: [tomli] diff --git a/pyproject.toml b/pyproject.toml index 5eb0f59ed2..cef735f65a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -212,12 +212,7 @@ extend-select = [ "UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up "W", # https://docs.astral.sh/ruff/rules/#pycodestyle-e-w ] -ignore = [ - "DJ001", - "PLC0415", - "RUF012", - "SIM105", -] +ignore = [ "DJ001", "ICN001", "PLC0415", "RUF012", "SIM105" ] # Migrations per-file-ignores."*/migrations/*.py" = [ "E501", diff --git a/src/documents/consumer.py b/src/documents/consumer.py index 94efd5f69a..c060368b4d 100644 --- a/src/documents/consumer.py +++ b/src/documents/consumer.py @@ -631,9 +631,7 @@ class ConsumerPlugin( pk=self.metadata.actor_id, ).first() if actor is not None: - from auditlog.context import ( # type: ignore[import-untyped] - set_actor, - ) + from auditlog.context import set_actor # type: ignore[import-untyped] with set_actor(actor): original_document.save() @@ -651,9 +649,7 @@ class ConsumerPlugin( # Create a log entry for the version addition, if enabled if settings.AUDIT_LOG_ENABLED: - from auditlog.models import ( # type: ignore[import-untyped] - LogEntry, - ) + from auditlog.models import LogEntry # type: ignore[import-untyped] LogEntry.objects.log_create( instance=root_doc,