Skip to content

Commit

Permalink
Add flake8 to Travis-CI to prevent these from coming back
Browse files Browse the repository at this point in the history
Added new travis make target to skip flake8 on pypy but run it on all others
  • Loading branch information
Bob Tolbert committed Aug 24, 2013
1 parent e33c27d commit fdb2385
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ install:
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install astor --use-mirrors; fi
- python setup.py -q install
# # command to run tests
script: nosetests
script: make travis
notifications:
email:
- [email protected]
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,12 @@ diff:

r: d tox diff

travis:
nosetests -s
ifeq (PyPy,$(findstring PyPy,$(shell python -V 2>&1 | tail -1)))
@echo "skipping flake8 on pypy"
else
flake8 hy bin tests
endif

.PHONY: docs
2 changes: 1 addition & 1 deletion hy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
if sys.version_info[0] >= 3:
str_type = str
else:
str_type = unicode
str_type = unicode # NOQA
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Check site / dev for more deps!
flake8
-e git+https://github.com/hylang/rply.git#egg=rply

0 comments on commit fdb2385

Please sign in to comment.