From 7a8ec8d6f28efc707574955eb3caf06593512cb2 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Mon, 30 Oct 2023 20:17:17 +0200 Subject: [PATCH] Switch formatting from black to ruff-format --- .pre-commit-config.yaml | 6 +----- Makefile | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 74764752e80..7e1bedf5883 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,11 +4,7 @@ repos: hooks: - id: ruff args: [--exit-non-zero-on-fix] - - - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.4.2 - hooks: - - id: black + - id: ruff-format - repo: https://github.com/PyCQA/bandit rev: 1.7.9 diff --git a/Makefile b/Makefile index ec415962740..fa1caa140b3 100644 --- a/Makefile +++ b/Makefile @@ -114,10 +114,9 @@ lint: .PHONY: lint-fix lint-fix: - python3 -c "import black" > /dev/null 2>&1 || python3 -m pip install black - python3 -m black . python3 -c "import ruff" > /dev/null 2>&1 || python3 -m pip install ruff python3 -m ruff check --fix . + python3 -m ruff format . .PHONY: mypy mypy: