Skip to content

Commit 55afe46

Browse files
committed
Just run black on Python version 3.6
1 parent 7d7f014 commit 55afe46

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ services:
1313
env:
1414
global:
1515
- DOCKER_COMPOSE_VERSION=1.18.0
16+
- BLACK_VERSION=18.9b0
1617

1718
before_install:
1819
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then bash docker-compose.sh; fi
@@ -23,9 +24,10 @@ install:
2324

2425
before_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

2729
script:
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

{{cookiecutter.app_slug}}/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
black==18.9b0
21
coverage==4.5.1
32
flake8==3.5.0
43
Flask==1.0.2

0 commit comments

Comments
 (0)