From 488564c5c28aa4499cf55c0ee4aeb5f996985307 Mon Sep 17 00:00:00 2001 From: Valentin Seitz Date: Mon, 8 Jul 2024 09:14:47 +0200 Subject: [PATCH 1/3] lets try --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e2aa774 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +stages: + - linting + +pre-commit: + stage: linting + image: python:3.12-slim-bookworm + before_script: + - apt update && apt install -y --no-install-recommends git + script: + - git config --global --add safe.directory $CI_PROJECT_DIR + - pre-commit run --all-files --verbose --color always + only: + - merge_requests -- GitLab From 309be26601d79cf72de3d620e914e67ca365de8f Mon Sep 17 00:00:00 2001 From: Valentin Seitz Date: Mon, 8 Jul 2024 09:19:55 +0200 Subject: [PATCH 2/3] lets install pre-commit --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e2aa774..040d86b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ pre-commit: 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 -- GitLab From 1114710ee6a7dfe2d284d9095fae56865bbb823f Mon Sep 17 00:00:00 2001 From: Valentin Seitz Date: Mon, 8 Jul 2024 09:22:43 +0200 Subject: [PATCH 3/3] Check in gitignore, and remove trailing whitespace --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7a15c88..002089c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ build* -.vscode \ No newline at end of file +.vscode -- GitLab