Skip to content

Commit

Permalink
fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-ht committed May 30, 2022
1 parent 73ec4fb commit 92687ea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion coverage/files.py
Expand Up @@ -406,7 +406,7 @@ def find_python_files(dirname, include_namespace_packages):
"""
for i, (dirpath, dirnames, filenames) in enumerate(os.walk(dirname)):
if (i > 0 and '__init__.py' not in filenames
if (i > 0 and '__init__.py' not in filenames
and not include_namespace_packages):
# If a directory doesn't have __init__.py, then it isn't
# importable and neither are its files
Expand Down
2 changes: 1 addition & 1 deletion coverage/inorout.py
Expand Up @@ -567,7 +567,7 @@ def _find_executable_files(self, src_dir):
"""
py_files = (
(py_file, None) for py_file in
(py_file, None) for py_file in
find_python_files(src_dir, self.include_namespace_packages)
)
plugin_files = self._find_plugin_files(src_dir)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cmdline.py
Expand Up @@ -61,8 +61,8 @@ class BaseCmdLineTest(CoverageTest):
_defaults.Coverage(
data_file=DEFAULT_DATAFILE,
cover_pylib=None, data_suffix=None, timid=None, branch=None,
config_file=True, source=None, include=None, include_namespace_packages=False,
omit=None, debug=None, concurrency=None, check_preimported=True, context=None,
config_file=True, source=None, include=None, include_namespace_packages=False,
omit=None, debug=None, concurrency=None, check_preimported=True, context=None,
messages=True,
)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_files.py
Expand Up @@ -427,7 +427,7 @@ def test_find_python_files_include_namespace_packages(self):
self.make_file("sub/ssub/__init__.py")
self.make_file("sub/ssub/s.py")
self.make_file("sub/ssub/~s.py") # nope: editor effluvia
self.make_file("sub/lab/exp.py")
self.make_file("sub/lab/exp.py")
self.make_file("sub/windows.pyw")
py_files = set(find_python_files("sub", True))
self.assert_same_files(py_files, [
Expand Down

0 comments on commit 92687ea

Please sign in to comment.