Skip to content

Commit

Permalink
Separate pre-commit hook and travis CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Duberstein committed Apr 5, 2020
1 parent b2503b2 commit 529bf49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -56,6 +56,5 @@ matrix:
- pip install -r requirements-dev.txt
- nvm install 10.16.0
- nvm use 10.16.0
- pre-commit install
- pip install -e . --install-option "--build_all" --verbose
script: pre-commit run --all-files
script: make test
7 changes: 3 additions & 4 deletions bindings/pydeck/Makefile
Expand Up @@ -17,9 +17,7 @@ init:
$(MAKE) prepare-jupyter

pre-commit:
black . &&
flake8 {pydeck,tests,*.py,examples} && \
pytest --cov=pydeck
black . && $(MAKE) test

pre-init:
python3 -m venv env; \
Expand All @@ -38,7 +36,8 @@ prepare-jupyter:
cd ../../bindings/pydeck

test:
pytest
flake8 {pydeck,tests,*.py,examples} && \
pytest --cov=pydeck

publish-conda:
@echo "NOTE pydeck does not yet publish to conda-forge. Awaiting #4202."
Expand Down
2 changes: 1 addition & 1 deletion bindings/pydeck/requirements-dev.txt
Expand Up @@ -18,4 +18,4 @@ semver # necessary for PEP440-compliant semantic versions
sphinx-markdown-builder
wheel
sphinx_rtd_theme
black
black;python_version>="3.6"

0 comments on commit 529bf49

Please sign in to comment.