Commit 6fd21383 authored by Maxime Emschwiller's avatar Maxime Emschwiller
Browse files

feat(ci): run black in ci

parent 8aba5dcf
Pipeline #62967 failed with stages
in 2 minutes and 12 seconds
......@@ -47,16 +47,18 @@ check_front:
tags:
- docker
flake8:
lint_backend:
<<: *only-default
stage: check_and_lint
image: registry.gitlab.utc.fr/rex-dri/rex-dri/backend:v0.2.1
script:
- cd backend && flake8
- cd backend
- black --check .
- flake8
tags:
- docker
eslint:
lint_frontend:
<<: *only-default
stage: check_and_lint
image: registry.gitlab.utc.fr/rex-dri/rex-dri/frontend:v2.1.0
......
......@@ -37,7 +37,7 @@ check_backend:
docker-compose exec backend sh -c "cd backend && ./manage.py check"
lint_backend:
docker-compose exec backend sh -c "cd backend && flake8"
docker-compose exec backend sh -c "cd backend && black --check . && flake8"
lint_frontend:
docker-compose exec frontend sh -c "cd frontend && yarn lint"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment