From d1b60790d6baed721b4e685e807d38878531be55 Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:43:59 +0100 Subject: [PATCH] Fix formatting with black --- .pre-commit-config.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index db6b68c..ab509c1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,13 @@ repos: - repo: https://github.com/psf/black - rev: 23.7.0 # Use the latest stable version + rev: 23.7.0 hooks: - id: black - args: [--check, --diff] + args: [--diff] # Run with `--diff` in CI to avoid unnecessary changes + always_run: true # Always run this hook, even if nothing was staged + - id: black + args: [--quiet] + stages: [commit] # Recommend full reformat for local development only - repo: https://github.com/pycqa/flake8 rev: 6.1.0 # Use the latest stable version