From 533f24a1d607623b4f92b62aef7049ed64aaec1e Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:42:35 +0100 Subject: [PATCH] Fix formatting with black --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2d8fbca..087c1ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,8 +30,8 @@ lint: stage: test script: - source $VIRTUAL_ENV/bin/activate - - pip install pre-commit # Install pre-commit in the CI environment - - pre-commit run --all-files # Run all pre-commit hooks on the entire codebase + - pip install pre-commit + - pre-commit run --all-files || (echo "Auto-fixing formatting issues" && black backend/ && git diff && exit 1) deploy: stage: deploy