Skip to content
Snippets Groups Projects
Commit 8988c1e6 authored by Moul's avatar Moul
Browse files

[ci] #418: #428: Add common job to group/gather minors hooks

pre-commit-hooks, mdformat, insert-license
Use small option: --all-files/-a
parent f424a731
No related branches found
No related tags found
1 merge request!210#428: Introduce pre-commit-hooks and mdformat hooks
Pipeline #15323 passed
......@@ -44,7 +44,7 @@ format:
- .pre-commit
stage: checks
script:
- pre-commit run --all-files black
- pre-commit run -a black
isort:
extends:
......@@ -52,7 +52,7 @@ isort:
- .pre-commit
stage: checks
script:
- pre-commit run --all-files isort
- pre-commit run -a isort
pyupgrade:
extends:
......@@ -60,7 +60,22 @@ pyupgrade:
- .pre-commit
stage: checks
script:
- pre-commit run --all-files pyupgrade
- pre-commit run -a pyupgrade
pre-commit:hooks:
extends:
- .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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment