From f3b4d0ce380854cd8ea87930333686b4ac3dd3d4 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 25 Aug 2015 22:09:15 +0200 Subject: [PATCH] Ignore htmlcov dir for spellchecks. --- scripts/dev/misc_checks.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/dev/misc_checks.py b/scripts/dev/misc_checks.py index 2f1cdb2ca..baf7c4877 100644 --- a/scripts/dev/misc_checks.py +++ b/scripts/dev/misc_checks.py @@ -40,9 +40,11 @@ def _get_files(only_py=False): """Iterate over all python files and yield filenames.""" for (dirpath, _dirnames, filenames) in os.walk('.'): parts = dirpath.split(os.sep) - if len(parts) >= 2 and parts[1].startswith('.'): - # ignore hidden dirs - continue + if len(parts) >= 2: + rootdir = parts[1] + if rootdir.startswith('.') or rootdir == 'htmlcov': + # ignore hidden dirs and htmlcov + continue if only_py: endings = {'.py'}