diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c534144d..c5bcea3e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -258,7 +258,7 @@ pre-commit-hooks: - python3 -m venv venv - source venv/bin/activate - pip3 install pre-commit - - pre-commit run --all-files || true + - pre-commit run --all-files - git diff --exit-code || (echo "ERROR - Code style errors found, please fix" && false) ################################################################# diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index 4311b2db..e5109cea 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -246,7 +246,7 @@ pre-commit-hooks: - python3 -m venv venv - source venv/bin/activate - pip3 install pre-commit - - pre-commit run --all-files || true + - pre-commit run --all-files - git diff --exit-code || (echo "ERROR - Code style errors found, please fix" && false) #################################################################