Skip to content

Don't install black on TravisCI automatically #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ before_install:
- source continuous-integration/travis/setup-miniconda.sh
# Install GMT from the dev channel to get development builds of GMT 6
- conda install --yes --quiet -c conda-forge/label/dev gmt=6.0.0a*
# Make sure that Python is still the correct version
- python -c "import sys; assert sys.version_info[:2] == tuple(int(i) for i in '$PYTHON'.split('.'))"
- if [ "$COVERAGE" == "true" ]; then
pip install codecov codacy-coverage codeclimate-test-reporter;
fi
Expand All @@ -70,7 +72,9 @@ install:

script:
# Check code for style and lint for code quality
# Black is Python 3.6 only so it can't be in the requirements file.
- if [ "$CHECK" == "true" ]; then
conda install --yes --quiet --channel conda-forge black python=$PYTHON;
make check;
fi
# Run the test suite. Make pytest report any captured output on stdout or stderr.
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pytest
pytest-cov
pytest-mpl
coverage
black
pylint
sphinx
sphinx_rtd_theme
Expand All @@ -20,3 +19,5 @@ numpydoc
twine
# The following are installed for checking possible conflicts
basemap
# Black is not included because it requires Python 3.6
#black