diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cdcf58b6c..91b209927 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ 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)$ @@ -50,18 +50,18 @@ repos: ] files: ^requirements/.*\.txt$ - repo: https://github.com/asottile/pyupgrade - rev: v3.20.0 + rev: v3.21.0 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.2 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.2 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 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 ...