From ea21cb52fc19e1eccc67064a1979b63913ee0580 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 24 Jan 2024 11:52:11 +0000 Subject: [PATCH] docs: replace black with ruff-format --- .pre-commit-config.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca67a70..35620b0 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.12.1 - hooks: - - id: black - # Lint / autoformat: Python code - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.1.9" + 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