From 6063df92b10cb7d31831cb19a87c05e4c4322834 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Thu, 22 Sep 2022 11:12:22 +0200 Subject: [PATCH 1/3] misc: run pyupgrade hook first (#69426) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 793766a50..c4fd3dccb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,11 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: +- repo: https://github.com/asottile/pyupgrade + rev: v2.20.0 + hooks: + - id: pyupgrade + args: ['--keep-percent-format', '--py37-plus'] - repo: https://github.com/psf/black rev: 22.3.0 hooks: @@ -11,11 +16,6 @@ repos: hooks: - id: isort args: ['--profile', 'black', '--line-length', '110'] -- repo: https://github.com/asottile/pyupgrade - rev: v2.20.0 - hooks: - - id: pyupgrade - args: ['--keep-percent-format', '--py37-plus'] - repo: https://git.entrouvert.org/pre-commit-debian.git rev: v0.1 hooks: -- 2.30.2