From 66192544f695f42b9e9a4590b216f512c24dd221 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 | 7 +------ Makefile | 3 +-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a6b1c6300..63967f254 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,12 +4,7 @@ repos: hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - - - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.10.1 - hooks: - - id: black - args: [--target-version=py38] + - id: ruff-format - repo: https://github.com/PyCQA/bandit rev: 1.7.5 diff --git a/Makefile b/Makefile index b7f07e24d..7e0419f20 100644 --- a/Makefile +++ b/Makefile @@ -117,7 +117,6 @@ lint: .PHONY: lint-fix lint-fix: - python3 -c "import black" > /dev/null 2>&1 || python3 -m pip install black - python3 -m black --target-version py38 . python3 -c "import ruff" > /dev/null 2>&1 || python3 -m pip install ruff python3 -m ruff --fix . + python3 -m ruff format .