Skip compat module when running flakes checks.

Python2-specific code fails on Python3 flakes and vice versa.
This commit is contained in:
Jelmer Vernooij 2017-07-29 13:09:48 +00:00
parent 39debdb011
commit 280b0d925a
No known key found for this signature in database
GPG Key ID: 1DF7EADF3B648883
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ install:
- sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm
script:
- tox -e $TOX_ENV
- python -m pyflakes.__main__ $(git ls-files | grep -E "^isso/.+.py$")
- python -m pyflakes.__main__ $(git ls-files | grep -E "^isso/.+.py$" | grep -v "^isso/compat.py")
notifications:
irc:
channels:

View File

@ -34,9 +34,9 @@ init:
check:
@echo "Python 2.x"
-@python2 -m pyflakes $(ISSO_PY_SRC)
@python2 -m pyflakes $(filter-out isso/compat.py,$(ISSO_PY_SRC))
@echo "Python 3.x"
-@python3 -m pyflakes $(ISSO_PY_SRC)
@python3 -m pyflakes $(filter-out isso/compat.py,$(ISSO_PY_SRC))
isso/js/%.min.js: $(ISSO_JS_SRC) $(ISSO_CSS)
$(RJS) -o isso/js/build.$*.js out=$@