Skip to content

Commit

Permalink
isort: fix compatibility with isort v5
Browse files Browse the repository at this point in the history
* fix CLI arguments for isort v5
  • Loading branch information
Javier Romero Castro authored and ntarocco committed Jul 10, 2020
1 parent bfd64ec commit 4084c5c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Expand Up @@ -20,6 +20,9 @@ notifications:

language: python

node_js:
- 10

matrix:
fast_finish: true

Expand Down Expand Up @@ -49,13 +52,15 @@ python:
- "3.6"

before_install:
# Upgrade Travis `numpy` version: default is vulnerable and pipenv check will fail otherwise
- pip uninstall numpy -y
- pip install --ignore-installed "numpy>=1.18"
# Stop the services running by default on travis
- "sudo service mysql stop"
- "sudo service postgresql stop"
# Chrome webdriver for Selenium
- "PATH=$PATH:$HOME/webdrivers"
- "if [ ${E2E} == 'yes' ] && [ ! -f $HOME/webdrivers/chromedriver ]; then wget https://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip -P $HOME/webdrivers; unzip -d $HOME/webdrivers $HOME/webdrivers/chromedriver_linux64.zip; fi"
- "nvm install 6; nvm use 6"
- "travis_retry pip install --upgrade pip setuptools py pipenv"
- "travis_retry pip install cookiecutter twine wheel coveralls sphinx"

Expand Down
7 changes: 6 additions & 1 deletion {{cookiecutter.project_shortname}}/.travis.yml
Expand Up @@ -15,6 +15,9 @@ notifications:

language: python

node_js:
- 10

matrix:
fast_finish: true

Expand All @@ -30,6 +33,9 @@ env:
- E2E_OUTPUT=base64
# Enable end-to-end tests
- E2E=no
# Force pipenv to create a new virtualenv to bypass travis virtualenv.
- PIPENV_IGNORE_VIRTUALENVS=1
- PIPENV_PYUP_API_KEY=""
matrix:
- REQUIREMENTS=prod E2E=yes
- REQUIREMENTS=qa
Expand All @@ -46,7 +52,6 @@ before_install:
# Chrome webdriver for Selenium
- "PATH=$PATH:$HOME/webdrivers"
- "if [ ${E2E} == 'yes' ] && [ ! -f $HOME/webdrivers/chromedriver ]; then wget https://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip -P $HOME/webdrivers; unzip -d $HOME/webdrivers $HOME/webdrivers/chromedriver_linux64.zip; fi"
- "nvm install 6; nvm use 6"
- "travis_retry pip install --upgrade pip setuptools py pipenv"
- "travis_retry pip install twine wheel coveralls"

Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_shortname}}/run-tests.sh
Expand Up @@ -3,7 +3,7 @@

pipenv check && \
pipenv run pydocstyle {{ cookiecutter.package_name }} tests docs && \
pipenv run isort -rc -c -df && \
pipenv run isort --check-only --diff && \
pipenv run check-manifest --ignore ".travis-*,docs/_build*" && \
pipenv run sphinx-build -qnNW docs docs/_build/html && \
pipenv run test

0 comments on commit 4084c5c

Please sign in to comment.