Skip to content

Commit

Permalink
Add pylint recipe checking to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholmer committed Sep 11, 2018
1 parent b3a9b46 commit ba55a28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ tctest: package

TAXCALC_JSON_FILES := $(shell ls -l ./taxcalc/*json | awk '{print $$9}')
TESTS_JSON_FILES := $(shell ls -l ./taxcalc/tests/*json | awk '{print $$9}')
PYLINT_OPTIONS = --disable=locally-disabled --score=no --jobs=4
PYLINT_FILES := $(shell grep -rl --include="*py" disable=locally-disabled .)
PYLINT_OPTIONS = --disable=locally-disabled --score=no --jobs=4
RECIPE_FILES := $(shell ls -l ./docs/cookbook/recipe*py | awk '{print $$9}')
RECIPE_OPTIONS = --disable=C0103,C0111,W0401,W0614 --score=no --jobs=4

.PHONY=cstest
cstest:
Expand All @@ -81,6 +83,7 @@ cstest:
@pycodestyle --ignore=E501,E121 $(TAXCALC_JSON_FILES)
@pycodestyle --ignore=E501,E121 $(TESTS_JSON_FILES)
@pylint $(PYLINT_OPTIONS) $(PYLINT_FILES)
@pylint $(RECIPE_OPTIONS) $(RECIPE_FILES)

define coverage-cleanup
rm -f .coverage htmlcov/*
Expand Down

0 comments on commit ba55a28

Please sign in to comment.