File tree Expand file tree Collapse file tree
{{cookiecutter.app_slug}} Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ services:
1313env :
1414 global :
1515 - DOCKER_COMPOSE_VERSION=1.18.0
16+ - BLACK_VERSION=18.9b0
1617
1718before_install :
1819 - if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then bash docker-compose.sh; fi
@@ -23,9 +24,10 @@ install:
2324
2425before_script :
2526 - if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then docker-compose up --build -d; fi
27+ - if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install black==$BLACK_VERSION; fi
2628
2729script :
28- - black --line-length 79 --check --diff .
30+ - if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then black --line-length 79 --check --diff .; fi
2931 - flake8 .
3032 - python manage.py cov
3133 - if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then docker-compose run web python manage.py cov; fi
Original file line number Diff line number Diff line change 1- black == 18.9b0
21coverage == 4.5.1
32flake8 == 3.5.0
43Flask == 1.0.2
You can’t perform that action at this time.
0 commit comments