From 6ae9801903b128140b3118d19bd485474f5d9612 Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Fri, 23 Aug 2024 15:02:08 +0200 Subject: [PATCH] fix: added pyupgrade to pre-commit --- .pre-commit-config.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c7fe7ae85..24ff74a72 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,18 +13,18 @@ repos: - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.5.0' + rev: v0.6.2 hooks: - id: ruff args: ["--fix"] - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.1 + rev: v1.11.1 hooks: - id: mypy additional_dependencies: @@ -36,3 +36,10 @@ repos: - types-aiobotocore[essential] - boto3-stubs[essential] exclude: ^(diracx-client/src/diracx/client/|diracx-[a-z]+/tests/|diracx-testing/|build) + + - repo: https://github.com/asottile/pyupgrade + rev: v3.17.0 + hooks: + - id: pyupgrade + args: ["--py311-plus"] + exclude: ^(diracx-client/src/diracx/client/|diracx-cli/tests/|diracx-cli/src/diracx/cli/)