blob: 0f7eb770dc5d5271022516f595fb30b956740fb3 [file] [log] [blame]
martin f. krafftbea29d12013-07-05 08:35:19 +02001#
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#
7PYFILES = $(shell find -name .git -o -name dist -o -name build -prune -o -name '*.py' -print)
8
9lint:
10 @echo pylint --rcfile=.pylintrc $(ARGS)
11 @pylint --rcfile=.pylintrc $(ARGS) $(PYFILES)
12.PHONY: lint
13
14lint-errors: ARGS=--errors-only
15lint-errors: lint
16.PHONY: lint-errors
17
18lint-report: ARGS=--report=y
19lint-report: lint
20.PHONY: lint-report
martin f. krafftb17a7b72013-07-05 08:45:35 +020021
22coverage: .coverage
23 python-coverage -r -m
24.PHONY: coverage
25.coverage: $(PYFILES)
26 python-coverage -x setup.py nosetests