-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from ntoll/decoupled
Decoupled
- Loading branch information
Showing
12 changed files
with
13,931 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
XARGS := xargs -0 $(shell test $$(uname) = Linux && echo -r) | ||
GREP_T_FLAG := $(shell test $$(uname) = Linux && echo -T) | ||
|
||
all: | ||
@echo "\nThere is no default Makefile target right now. Try:\n" | ||
@echo "make clean - reset the project and remove auto-generated assets." | ||
@echo "make pyflakes - run the PyFlakes code checker." | ||
@echo "make pep8 - run the PEP8 style checker." | ||
@echo "make test - run the test suite." | ||
@echo "make coverage - view a report on test coverage." | ||
@echo "make check - run all the checkers and tests." | ||
@echo "make docs - run sphinx to create project documentation.\n" | ||
|
||
clean: | ||
rm -rf build | ||
rm -rf dist | ||
rm -rf mu.egg-info | ||
rm -rf .coverage | ||
rm -rf docs/_build | ||
find . \( -name '*.py[co]' -o -name dropin.cache \) -print0 | $(XARGS) rm | ||
find . \( -name '*.bak' -o -name dropin.cache \) -print0 | $(XARGS) rm | ||
find . \( -name '*.tgz' -o -name dropin.cache \) -print0 | $(XARGS) rm | ||
|
||
pyflakes: | ||
find . \( -name _build -o -name var -o -path ./docs \) -type d -prune -o -name '*.py' -print0 | $(XARGS) pyflakes | ||
|
||
pep8: | ||
find . \( -name _build -o -name var \) -type d -prune -o -name '*.py' -print0 | $(XARGS) -n 1 pep8 --repeat --exclude=build/*,docs/* --ignore=E731,E402 | ||
|
||
test: clean | ||
py.test | ||
|
||
coverage: clean | ||
py.test --cov-report term-missing --cov=mu tests/ | ||
|
||
check: clean pep8 pyflakes coverage | ||
|
||
docs: clean | ||
$(MAKE) -C docs html | ||
@echo "\nDocumentation can be found here:" | ||
@echo file://`pwd`/docs/_build/html/index.html | ||
@echo "\n" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.