chore: add flake8 pre-commit hook
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2178>
This commit is contained in:
parent
af699c3303
commit
4fbef50d71
4 changed files with 16 additions and 24 deletions
|
|
@ -166,25 +166,6 @@ black:
|
|||
changes:
|
||||
- api/**/*
|
||||
|
||||
flake8:
|
||||
interruptible: true
|
||||
image: python:3.7
|
||||
stage: lint
|
||||
variables:
|
||||
GIT_STRATEGY: fetch
|
||||
before_script:
|
||||
- pip install 'flake8<3.7'
|
||||
script:
|
||||
- flake8 -v api
|
||||
cache:
|
||||
key: "$CI_PROJECT_ID__flake8_pip_cache"
|
||||
paths:
|
||||
- "$PIP_CACHE_DIR"
|
||||
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