From cda2f91fd626c2a9313d783f870d898ed8c1d7c7 Mon Sep 17 00:00:00 2001 From: francisco souza <108725+fsouza@users.noreply.github.com> Date: Tue, 12 Mar 2024 23:08:12 -0400 Subject: [PATCH] pre-commit-config: move back to black and autoflake While ruff is fast, it's conflicting with reorder-python-imports and I'll stick to the latter. --- .pre-commit-config.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fb628f9..2657f23 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,12 +20,6 @@ repos: - --add-import - from __future__ import annotations - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.2 - hooks: - - id: ruff - - id: ruff-format - - repo: https://github.com/asottile/pyupgrade rev: v3.15.1 hooks: @@ -45,6 +39,16 @@ repos: hooks: - id: validate-pyproject + - repo: https://github.com/psf/black + rev: "24.2.0" + hooks: + - id: black + + - repo: https://github.com/pycqa/autoflake + rev: v2.3.0 + hooks: + - id: autoflake + - repo: https://github.com/fsouza/mirrors-pyright rev: v1.1.353 hooks: