summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--misc/pep8.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 2a4de038..4bb0e244 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -53,6 +53,6 @@ upload-release: $(distdir).tar.gz
check-local:
@echo " PEP-8 INQUISITION"
- @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat
+ @find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat --exclude=config.py
@echo " CHECK Pyflakes"
@find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pyflakes.py
diff --git a/misc/pep8.py b/misc/pep8.py
index 3b6248c2..fef8a546 100644
--- a/misc/pep8.py
+++ b/misc/pep8.py
@@ -647,7 +647,7 @@ def input_file(filename):
Run all checks on a Python source file.
"""
if excluded(filename) or not filename_match(filename):
- return {}
+ return 0
if options.verbose:
message('checking ' + filename)
options.counters['files'] = options.counters.get('files', 0) + 1