Skip to content

Commit

Permalink
upgrade linters
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Feb 11, 2024
1 parent d9ab7e8 commit 1bf5e43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,26 +32,26 @@ 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:
- black==22.8.0 # keep in sync with black hook

# 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
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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]
1 change: 1 addition & 0 deletions src/Levenshtein/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1bf5e43

Please sign in to comment.