From f0627aac91ae6b3b17df468dc51ce203600a76d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 25 Jan 2025 19:20:00 +0100 Subject: [PATCH] ci: Update pre-commit-config.yaml --- .pre-commit-config.yaml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b155aba..a9e0f2b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,20 +1,21 @@ repos: - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.3.2 + rev: v0.6.8 hooks: - id: ruff + stages: [manual] + exclude: ".githooks/" - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.4.0 hooks: - id: codespell pass_filenames: false - args: ["--skip=*.svg,*.po,./acronyms_expander/acronyms.py", "-L=fpr,"] additional_dependencies: - tomli - repo: https://github.com/RobertCraigie/pyright-python - rev: v1.1.361 + rev: v1.1.382 hooks: - id: pyright pass_filenames: false @@ -27,3 +28,16 @@ repos: rev: 5.13.2 hooks: - id: isort + + - repo: https://github.com/psf/black + # The `refs/tags/:refs/tags/` is needed for black's required-version to work: + # https://github.com/psf/black/issues/2493#issuecomment-1081987650 + rev: 'refs/tags/24.10.0:refs/tags/24.10.0' + hooks: + - id: black + + - repo: https://github.com/fsfe/reuse-tool + rev: v5.0.2 + hooks: + - id: reuse + stages: [manual]