Skip to content
This repository has been archived by the owner on Oct 3, 2018. It is now read-only.

Commit

Permalink
Run lint and test via make.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsyencken committed Apr 13, 2014
1 parent 9788336 commit 16e4cbb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
*.egg-info
build
dist
env
20 changes: 17 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
test: _PHONY
python -m unittest discover test
#
# Makefile
#

default: test

env: requirements.txt
test -d env || virtualenv env
env/bin/pip install -r requirements.txt

_PHONY:
env/bin/flake8: env
env/bin/pip install flake8

lint: env/bin/flake8
find doko -name '*.py' | xargs env/bin/flake8

test: lint
python -m unittest discover test

0 comments on commit 16e4cbb

Please sign in to comment.