Convert namespace package names into paths

Namespace packages, which have a name like "namespace.package" need to
be converted to paths in order to be found by flake8 - as the code
is in "namespace/package/".
This commit is contained in:
Rogier van der Geer 2019-12-13 12:19:25 +01:00
parent bb61b3df82
commit af2f71c910
2 changed files with 4 additions and 2 deletions

View file

@ -14,6 +14,7 @@ def distribution():
'foo',
'foo.bar',
'foo_biz',
'namespace.bar',
],
})
@ -30,4 +31,5 @@ def test_package_files_removes_submodules(command):
assert sorted(package_files) == [
'foo',
'foo_biz',
'namespace/bar',
]