Skip to content

Commit

Permalink
Run Black for Python 3.6 and above only
Browse files Browse the repository at this point in the history
  • Loading branch information
suminb committed Oct 29, 2019
1 parent 5e09e26 commit 3f180b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ addons:

install:
- pip install --requirement tests/requirements.txt
- pip install black
- pip install "black; python_version >= '3.6'"

script:
- black --check .
- |
if [ -x "$(command -v black)" ]; then
black --check .
fi
- py.test tests --cov base62 --durations=10

after_success:
Expand Down

0 comments on commit 3f180b7

Please sign in to comment.