Ignore htmlcov dir for spellchecks.
This commit is contained in:
parent
11f4fbc772
commit
f3b4d0ce38
@ -40,9 +40,11 @@ def _get_files(only_py=False):
|
|||||||
"""Iterate over all python files and yield filenames."""
|
"""Iterate over all python files and yield filenames."""
|
||||||
for (dirpath, _dirnames, filenames) in os.walk('.'):
|
for (dirpath, _dirnames, filenames) in os.walk('.'):
|
||||||
parts = dirpath.split(os.sep)
|
parts = dirpath.split(os.sep)
|
||||||
if len(parts) >= 2 and parts[1].startswith('.'):
|
if len(parts) >= 2:
|
||||||
# ignore hidden dirs
|
rootdir = parts[1]
|
||||||
continue
|
if rootdir.startswith('.') or rootdir == 'htmlcov':
|
||||||
|
# ignore hidden dirs and htmlcov
|
||||||
|
continue
|
||||||
|
|
||||||
if only_py:
|
if only_py:
|
||||||
endings = {'.py'}
|
endings = {'.py'}
|
||||||
|
Loading…
Reference in New Issue
Block a user