diff --git a/.gitignore b/.gitignore index 7a15c888d2ed49b44533202d4bb2be32dca589aa..002089cf855534e6fdb463b2fc75a86606f33181 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ build* -.vscode \ No newline at end of file +.vscode diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..040d86b6d4c0123667e433b46208f29847fab3e2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +stages: + - linting + +pre-commit: + stage: linting + image: python:3.12-slim-bookworm + before_script: + - apt update && apt install -y --no-install-recommends git + - pip install pre-commit + script: + - git config --global --add safe.directory $CI_PROJECT_DIR + - pre-commit run --all-files --verbose --color always + only: + - merge_requests