From 4a877fbb9922c122df7c5b75b87a21da92d0f3a1 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 24 Jan 2024 11:52:46 +0000 Subject: [PATCH] docs: replace black with ruff-format --- .pre-commit-config.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fba93155..4ffd9ae0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,19 +6,16 @@ repos: - id: commitizen stages: [commit-msg] - # Autoformat: Python code - - repo: https://github.com/psf/black - rev: 23.11.0 - hooks: - - id: black - # Lint / autoformat: Python code - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: "v0.1.6" hooks: + # Run the linter - id: ruff - args: [--exit-non-zero-on-fix] + args: [--fix, --exit-non-zero-on-fix] + # Run the formatter + - id: ruff-format # Autoformat: YAML, JSON, Markdown, etc. - repo: https://github.com/pre-commit/mirrors-prettier