Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run flake8 on CI #44

Merged
merged 3 commits into from
Sep 27, 2017
Merged
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
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ install:
# Install the package and dependencies.
- pip install -e .

# command to run tests, e.g. python setup.py test
script:
# Run our test suite and report coverage.
- coverage erase
- coverage run --source . setup.py test
- coverage report -m

# Do some basic linting of the code.
- flake8 .
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This runs on all of our code including the library, the tests, and our setup.py file.


# Report coverage
after_success:
- source activate root
Expand Down
1 change: 1 addition & 0 deletions environment_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- coverage==4.0.3
- python-coveralls==2.7.0
- pytest==3.0.5
- flake8==3.2.1
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pinned to this version as packages exists on Python 2.7, 3.4, 3.5, and 3.6 from conda-forge.

- dask==0.13.0
- numpy==1.11.3
- scipy==0.19.1