Skip to content

Commit 92687ea

Browse files
committed
fixed lint issues
1 parent 73ec4fb commit 92687ea

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

coverage/files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def find_python_files(dirname, include_namespace_packages):
406406
407407
"""
408408
for i, (dirpath, dirnames, filenames) in enumerate(os.walk(dirname)):
409-
if (i > 0 and '__init__.py' not in filenames
409+
if (i > 0 and '__init__.py' not in filenames
410410
and not include_namespace_packages):
411411
# If a directory doesn't have __init__.py, then it isn't
412412
# importable and neither are its files

coverage/inorout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def _find_executable_files(self, src_dir):
567567
568568
"""
569569
py_files = (
570-
(py_file, None) for py_file in
570+
(py_file, None) for py_file in
571571
find_python_files(src_dir, self.include_namespace_packages)
572572
)
573573
plugin_files = self._find_plugin_files(src_dir)

tests/test_cmdline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class BaseCmdLineTest(CoverageTest):
6161
_defaults.Coverage(
6262
data_file=DEFAULT_DATAFILE,
6363
cover_pylib=None, data_suffix=None, timid=None, branch=None,
64-
config_file=True, source=None, include=None, include_namespace_packages=False,
65-
omit=None, debug=None, concurrency=None, check_preimported=True, context=None,
64+
config_file=True, source=None, include=None, include_namespace_packages=False,
65+
omit=None, debug=None, concurrency=None, check_preimported=True, context=None,
6666
messages=True,
6767
)
6868

tests/test_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def test_find_python_files_include_namespace_packages(self):
427427
self.make_file("sub/ssub/__init__.py")
428428
self.make_file("sub/ssub/s.py")
429429
self.make_file("sub/ssub/~s.py") # nope: editor effluvia
430-
self.make_file("sub/lab/exp.py")
430+
self.make_file("sub/lab/exp.py")
431431
self.make_file("sub/windows.pyw")
432432
py_files = set(find_python_files("sub", True))
433433
self.assert_same_files(py_files, [

0 commit comments

Comments
 (0)