mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-09 14:34:53 +03:00
Run black on the CI with --check option
This commit is contained in:
parent
f3c82aaf60
commit
87ea2c33cc
|
@ -13,8 +13,10 @@ before_install:
|
|||
|
||||
matrix:
|
||||
include:
|
||||
- name: Tox test
|
||||
- name: Test
|
||||
script: tox -e py36
|
||||
- name: Black
|
||||
script: tox -e black
|
||||
- name: Basic Docker
|
||||
script: sh tests/test_docker.sh
|
||||
- name: Docker with Celery
|
||||
|
|
|
@ -19,6 +19,9 @@ cd my_awesome_project
|
|||
# run the project's type checks
|
||||
docker-compose -f local.yml run django mypy my_awesome_project
|
||||
|
||||
# Run black with --check option
|
||||
docker-compose -f local.yml run django black --check my_awesome_project
|
||||
|
||||
# run the project's tests
|
||||
docker-compose -f local.yml run django pytest
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user