Closed gilbsgilbs closed 6 years ago
Hi,
The application-package-names doesn't seem to work properly with namespaced packages.
application-package-names
E.g.
# flake8-import-order will consider this as a third-party package, and disallow newlines application-package-names = mynamespace.myproject
This is probably because the root_package_name function considers mynamespace to be the root package name.
root_package_name
mynamespace
https://github.com/PyCQA/flake8-import-order/blob/b563bc958d37b017cb9c79ab85121299bd459137/flake8_import_order/__init__.py#L82
Duplicate of https://github.com/PyCQA/flake8-import-order/issues/111 . Sorry.
Thanks, I think solving #111 will solve this.
Could you check to see if #126 fixes this?
Hi,
The
application-package-names
doesn't seem to work properly with namespaced packages.E.g.
This is probably because the
root_package_name
function considersmynamespace
to be the root package name.https://github.com/PyCQA/flake8-import-order/blob/b563bc958d37b017cb9c79ab85121299bd459137/flake8_import_order/__init__.py#L82