martin f. krafft | bea29d1 | 2013-07-05 08:35:19 +0200 | [diff] [blame] | 1 | # |
| 2 | # This file is part of reclass (http://github.com/madduck/reclass) |
| 3 | # |
| 4 | # Copyright © 2007–13 martin f. krafft <madduck@madduck.net> |
| 5 | # Released under the terms of the Artistic Licence 2.0 |
| 6 | # |
| 7 | PYFILES = $(shell find -name .git -o -name dist -o -name build -prune -o -name '*.py' -print) |
| 8 | |
| 9 | lint: |
| 10 | @echo pylint --rcfile=.pylintrc $(ARGS) … |
| 11 | @pylint --rcfile=.pylintrc $(ARGS) $(PYFILES) |
| 12 | .PHONY: lint |
| 13 | |
| 14 | lint-errors: ARGS=--errors-only |
| 15 | lint-errors: lint |
| 16 | .PHONY: lint-errors |
| 17 | |
| 18 | lint-report: ARGS=--report=y |
| 19 | lint-report: lint |
| 20 | .PHONY: lint-report |
martin f. krafft | b17a7b7 | 2013-07-05 08:45:35 +0200 | [diff] [blame^] | 21 | |
| 22 | coverage: .coverage |
| 23 | python-coverage -r -m |
| 24 | .PHONY: coverage |
| 25 | .coverage: $(PYFILES) |
| 26 | python-coverage -x setup.py nosetests |