From 52403c53841a30edf550f5610e33e6c0981caad1 Mon Sep 17 00:00:00 2001 From: nfnty Date: Mon, 26 Dec 2016 17:18:52 +0100 Subject: linting: Fix `make test` --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index beb0a325..cd871d2e 100644 --- a/Makefile +++ b/Makefile @@ -60,13 +60,17 @@ doc: cleandoc pydoc.writedocs("$(CWD)")' find . -name \*.html -exec sed -i 's|'"$(CWD)"'|../..|g' -- {} \; -TEST_PATHS_MAIN = doc/tools/*.py examples/*.py $(filter-out ranger/__pycache__ ranger/config ranger/data, $(wildcard ranger/*)) tests *.py +TEST_PATHS_MAIN = \ + $(shell find ranger -mindepth 1 -maxdepth 1 -type d -and -not -name '__pycache__' -and -not -path 'ranger/config' -and -not -path 'ranger/data') \ + ranger/__init__.py \ + $(shell find . '(' -path './ranger' -or -path './tests' ')' -prune -or -type f -name '*.py' -print) \ + tests TEST_PATH_CONFIG = ranger/config test: @echo "Running pylint..." pylint $(TEST_PATHS_MAIN) - pylint --rcfile=$(TEST_PATH_CONFIG)/.pylintrc $(TEST_PATH_CONFIG) + pylint --rcfile=$(TEST_PATH_CONFIG)/pylintrc $(TEST_PATH_CONFIG) @echo "Running flake8..." flake8 $(TEST_PATHS_MAIN) $(TEST_PATH_CONFIG) @echo "Running doctests..." -- cgit 1.4.1-2-gfad0