From 3674702e3665a432f4c3fb9a13c794cf0c90a40b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 16:24:31 +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/peterdemin/pip-compile-multi: v3.2.1 → v3.2.2](https://github.com/peterdemin/pip-compile-multi/compare/v3.2.1...v3.2.2) - [github.com/pypa/pip-audit: v2.9.0 → v2.10.0](https://github.com/pypa/pip-audit/compare/v2.9.0...v2.10.0) - [github.com/asottile/pyupgrade: v3.20.0 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v3.20.0...v3.21.2) - [github.com/astral-sh/ruff-pre-commit: v0.12.0 → v0.14.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.0...v0.14.10) - [github.com/PyCQA/pylint: v3.3.7 → v4.0.4](https://github.com/PyCQA/pylint/compare/v3.3.7...v4.0.4) - [github.com/fredrikaverpil/creosote: v4.0.3 → v4.1.0](https://github.com/fredrikaverpil/creosote/compare/v4.0.3...v4.1.0) - [github.com/shellcheck-py/shellcheck-py: v0.10.0.1 → v0.11.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.10.0.1...v0.11.0.1) - [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/pycontribs/mirrors-prettier: v3.6.0 → v3.6.2](https://github.com/pycontribs/mirrors-prettier/compare/v3.6.0...v3.6.2) --- .pre-commit-config.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cdcf58b6c..877dff80b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,12 +23,12 @@ repos: hooks: - id: sync-pre-commit-deps - repo: https://github.com/peterdemin/pip-compile-multi - rev: v3.2.1 + rev: v3.2.2 hooks: - id: pip-compile-multi-verify files: ^requirements/.*\.(in|txt)$ - repo: https://github.com/pypa/pip-audit - rev: v2.9.0 + rev: v2.10.0 hooks: - id: pip-audit args: [ @@ -50,18 +50,18 @@ repos: ] files: ^requirements/.*\.txt$ - repo: https://github.com/asottile/pyupgrade - rev: v3.20.0 + rev: v3.21.2 hooks: - id: pyupgrade args: ['--keep-runtime-typing', '--py311-plus'] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.0 + rev: v0.14.10 hooks: - id: ruff-check args: ['--fix', '--exit-non-zero-on-fix'] - id: ruff-format - repo: https://github.com/PyCQA/pylint - rev: v3.3.7 + rev: v4.0.4 hooks: - id: pylint args: [ @@ -73,17 +73,17 @@ repos: additional_dependencies: - tomli - repo: https://github.com/fredrikaverpil/creosote - rev: v4.0.3 + rev: v4.1.0 hooks: - id: creosote - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.10.0.1 + rev: v0.11.0.1 hooks: - id: shellcheck args: - --external-sources - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -124,7 +124,7 @@ repos: - id: forbid-tabs - id: remove-tabs - repo: https://github.com/pycontribs/mirrors-prettier - rev: v3.6.0 + rev: v3.6.2 hooks: - id: prettier - repo: https://github.com/ducminh-phan/reformat-gherkin From 1479d47a2782896ff114fc7a2e6a4b7cc58cdad9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 16:30:03 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- funnel/models/shortlink.py | 2 +- funnel/utils/jinja_template.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/funnel/models/shortlink.py b/funnel/models/shortlink.py index 15c73b993..69e77c437 100644 --- a/funnel/models/shortlink.py +++ b/funnel/models/shortlink.py @@ -286,7 +286,7 @@ def new( cls, url: str | furl, *, - name: Literal[None] = None, + name: None = None, shorter: bool = False, reuse: Literal[True] = True, actor: Account | None = None, diff --git a/funnel/utils/jinja_template.py b/funnel/utils/jinja_template.py index 40e5c9cca..9d6af169b 100644 --- a/funnel/utils/jinja_template.py +++ b/funnel/utils/jinja_template.py @@ -210,7 +210,7 @@ def jinja_global(*, init: Literal[False] = False) -> Any: # noqa: ARG001 return ... -def jinja_undefined(*, default: Literal[None] = None) -> Any: # noqa: ARG001 +def jinja_undefined(*, default: None = None) -> Any: # noqa: ARG001 """Sentinel for an optional Jinja2 context variable.""" return ...