From 3449d4026ab027d851f07b7fd2f2df4029b02a26 Mon Sep 17 00:00:00 2001 From: Petros Kalos Date: Tue, 9 Apr 2024 16:48:51 +0300 Subject: [PATCH] fail if ruff (check or format) finds a difference --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index abdcd36b5..f979a896e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,9 +5,9 @@ repos: hooks: # Run the linter. - id: ruff - args: [ --fix ] # Run the formatter. - id: ruff-format + args: [ --check ] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.5.0 hooks: