chore: add black pre-commit hook
This commit is contained in:
parent
62860d0781
commit
fa51738fe8
3 changed files with 7 additions and 16 deletions
|
|
@ -151,21 +151,6 @@ pre-commit:
|
|||
script:
|
||||
- pre-commit run --all --color=always --show-diff-on-failure
|
||||
|
||||
black:
|
||||
interruptible: true
|
||||
image: python:3.11
|
||||
stage: lint
|
||||
variables:
|
||||
GIT_STRATEGY: fetch
|
||||
before_script:
|
||||
- pip install black
|
||||
script:
|
||||
- black --check --diff .
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
changes:
|
||||
- api/**/*
|
||||
|
||||
eslint:
|
||||
interruptible: true
|
||||
image: node:18-alpine
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue