From e04a648243381b0be3b7964069ad92b1c9a19938 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Sun, 14 Jan 2024 11:03:15 +0100 Subject: [PATCH] misc: update pre-commit hooks (#85632) --- .pre-commit-config.yaml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 631047d..79398aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,18 +5,32 @@ repos: rev: v4.4.0 hooks: - id: double-quote-string-fixer +- repo: https://github.com/asottile/pyupgrade + rev: v3.3.1 + hooks: + - id: pyupgrade + args: ['--keep-percent-format', '--py39-plus'] +- repo: https://github.com/adamchainz/django-upgrade + rev: 1.13.0 + hooks: + - id: django-upgrade + args: ['--target-version', '3.2'] - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 23.1.0 hooks: - id: black - args: ['--target-version', 'py37', '--skip-string-normalization', '--line-length', '110'] + args: ['--target-version', 'py39', '--skip-string-normalization', '--line-length', '110'] - repo: https://github.com/PyCQA/isort rev: 5.12.0 hooks: - id: isort args: ['--profile', 'black', '--line-length', '110'] -- repo: https://github.com/asottile/pyupgrade - rev: v3.1.0 +- repo: https://github.com/rtts/djhtml + rev: '3.0.5' hooks: - - id: pyupgrade - args: ['--keep-percent-format', '--py37-plus'] + - id: djhtml + args: ['--tabwidth', '2'] +- repo: https://git.entrouvert.org/pre-commit-debian.git + rev: v0.3 + hooks: + - id: pre-commit-debian