From 02cb8758f365b3a6c86e67af6614a9b44dda45cb Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Sun, 4 Jun 2023 15:41:44 +0200 Subject: [PATCH] ci: Set job for minor pre-commit hooks (#202) --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d93d13d..68bc685 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -80,6 +80,22 @@ mypy: script: - pre-commit run -a mypy +pre-commit:hooks: + extends: + - .code_changes + - .pre-commit + stage: checks + script: + - pre-commit run -a check-ast + - pre-commit run -a check-merge-conflict + - pre-commit run -a check-toml + - pre-commit run -a debug-statements + - pre-commit run -a end-of-file-fixer + - pre-commit run -a mixed-line-ending + - pre-commit run -a trailing-whitespace + - pre-commit run -a insert-license + - pre-commit run -a mdformat + .tests: extends: .changes stage: tests -- GitLab