From 8996f5cf34f35a12027fc4e0d6b9c125192bf013 Mon Sep 17 00:00:00 2001 From: Jan-Niklas Weghorn Date: Fri, 27 Sep 2024 12:28:34 +0200 Subject: [PATCH] ci: add pre-commit --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f9fc73d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +stages: + - lint + +pre_commit: + stage: lint + image: python:3.12 + before_script: + - pip install pre-commit + script: + - pre-commit run --all-files --show-diff-on-failure