From 2a99dc929a49984ac4e7cb4b8dcb79c4e39199be Mon Sep 17 00:00:00 2001 From: Steve Jalim Date: Wed, 24 Jan 2024 21:11:23 +0000 Subject: [PATCH] Ensure pre-commit also runs ruff-format, to match test runs --- .pre-commit-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 198e4af..41be4c1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,5 +20,8 @@ repos: - repo: https://github.com/charliermarsh/ruff-pre-commit rev: v0.1.14 hooks: + # Run the linter - id: ruff args: [--fix, --exit-non-zero-on-fix] + # Run the formatter + - id: ruff-format