From 3c47ebdee44547c2f3370fb18f6b6ef0ba5b7617 Mon Sep 17 00:00:00 2001 From: Braden Mars Date: Mon, 13 Mar 2023 04:35:01 -0500 Subject: [PATCH] feat(dx): replace pyupgrade/autoflake hooks with ruff Signed-off-by: Braden Mars --- .pre-commit-config.yaml | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bf515104..06bc2a6a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,13 +18,6 @@ exclude: | )$ repos: - - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 - hooks: - - id: pyupgrade - args: - - --py3-plus - - --keep-runtime-typing - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: @@ -32,26 +25,22 @@ repos: - id: detect-private-key - id: end-of-file-fixer - id: check-executables-have-shebangs - - repo: https://github.com/PyCQA/autoflake - rev: v2.0.1 + - repo: https://github.com/charliermarsh/ruff-pre-commit + rev: "v0.0.245" hooks: - - id: autoflake + - id: ruff args: - - --recursive - - --in-place - - --remove-all-unused-imports - - --ignore-init-module-imports - - repo: https://github.com/psf/black - rev: 23.1.0 - hooks: - - id: black + - --fix - repo: https://github.com/pycqa/isort rev: 5.12.0 hooks: - id: isort - + - repo: https://github.com/psf/black + rev: 23.1.0 + hooks: + - id: black - repo: https://github.com/python-poetry/poetry - rev: 1.3.0 + rev: 1.4.0 hooks: - id: poetry-check - id: poetry-export