diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4b08bc7..57a3b6f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: # Standard hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.4.0" + rev: "v4.5.0" hooks: - id: check-added-large-files - id: check-case-conflict @@ -32,13 +32,13 @@ repos: # Black, the code formatter, natively supports pre-commit - repo: https://github.com/psf/black - rev: "23.3.0" # Keep in sync with blacken-docs + rev: "24.1.1" # Keep in sync with blacken-docs hooks: - id: black # Also code format the docs - repo: https://github.com/asottile/blacken-docs - rev: "1.13.0" + rev: "1.16.0" hooks: - id: blacken-docs additional_dependencies: @@ -46,12 +46,12 @@ repos: # Changes tabs to spaces - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: "v1.5.1" + rev: "v1.5.4" hooks: - id: remove-tabs - repo: https://github.com/sirosen/texthooks - rev: "0.5.0" + rev: "0.6.4" hooks: - id: fix-ligatures - id: fix-smartquotes @@ -68,7 +68,7 @@ repos: # PyLint has native support - not always usable, but works for us - repo: https://github.com/PyCQA/pylint - rev: "v3.0.0a6" + rev: "v3.0.3" hooks: - id: pylint files: ^pybind11 @@ -101,14 +101,14 @@ repos: additional_dependencies: [cmake, ninja] - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.261 + rev: v0.2.1 hooks: - id: ruff args: ["--fix", "--show-fixes"] # Check for spelling - repo: https://github.com/codespell-project/codespell - rev: "v2.2.4" + rev: "v2.2.6" hooks: - id: codespell exclude: ".*/test_.*.py" @@ -131,7 +131,7 @@ repos: # Clang format the codebase automatically - repo: https://github.com/pre-commit/mirrors-clang-format - rev: "v16.0.0" + rev: "v17.0.6" hooks: - id: clang-format types_or: [c++, c] diff --git a/src/Levenshtein/__init__.py b/src/Levenshtein/__init__.py index e585128..9630aa7 100644 --- a/src/Levenshtein/__init__.py +++ b/src/Levenshtein/__init__.py @@ -13,6 +13,7 @@ arguments to a function (method) have to be of the same type (or its subclasses). """ + from __future__ import annotations __author__: str = "Max Bachmann"