mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
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:
parent
bb61b3df82
commit
af2f71c910
2 changed files with 4 additions and 2 deletions
|
|
@ -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',
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue