Update pre-commit hooks to latest versions

This commit is contained in:
2025-02-10 04:27:20 +01:00
parent c9b3d92c19
commit 96a1aaa550

View File

@ -1,5 +1,3 @@
default_language_version:
python: python3.12
repos: repos:
# Automatically add trailing commas to calls and literals. # Automatically add trailing commas to calls and literals.
- repo: https://github.com/asottile/add-trailing-comma - repo: https://github.com/asottile/add-trailing-comma
@ -28,19 +26,19 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: mixed-line-ending - id: mixed-line-ending
- id: name-tests-test - id: name-tests-test
args: [--django] args: [-pytest-test-first]
- id: trailing-whitespace - id: trailing-whitespace
# Run Pyupgrade on all Python files. This will upgrade the code to Python 3.12. # Run Pyupgrade on all Python files. This will upgrade the code to Python 3.12.
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.19.0 rev: v3.19.1
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: ["--py312-plus"] args: ["--py312-plus"]
# An extremely fast Python linter and formatter. # An extremely fast Python linter and formatter.
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1 rev: v0.9.5
hooks: hooks:
- id: ruff-format - id: ruff-format
- id: ruff - id: ruff
@ -48,6 +46,6 @@ repos:
# Static checker for GitHub Actions workflow files. # Static checker for GitHub Actions workflow files.
- repo: https://github.com/rhysd/actionlint - repo: https://github.com/rhysd/actionlint
rev: v1.7.3 rev: v1.7.7
hooks: hooks:
- id: actionlint - id: actionlint