Skip to content

Commit 1aef871

Browse files
laurent-pckkeon
authored andcommitted
Black in travis ci (keon#551)
* Add black in before_script of travis ci. * Black reformatting of the repo. * Remove python 3.5 from .travis.yml to support black * Revert "Black reformatting of the repo." This reverts commit ea0b370. * Add black or true not to make every ci fail from this PR.
1 parent 816bec0 commit 1aef871

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: .travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ cache:
66
- $HOME/.cache/pip
77
matrix:
88
include:
9-
- python: 3.5
10-
env: TOX_ENV=py35
119
- python: 3.6
1210
env: TOX_ENV=py36
1311
- python: 3.7
1412
env: TOX_ENV=py37
1513
install:
1614
- pip install -r test_requirements.txt
1715
before_script:
16+
# run black to check if some files would need reformatting
17+
- black --check . || true
1818
# stop the build if there are Python syntax errors or undefined names
1919
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
2020
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide

Diff for: test_requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ coverage
44
nose
55
pytest
66
tox
7+
black

0 commit comments

Comments
 (0)