A flake8 lint to enforce that some modules can't be imported from other modules.
Project description
Flake8 Import Graph
A flake8 lint to enforce that some modules can’t be imported from other modules.
pip install flake8-import-graph==0.1.1
Configure it, by putting .flake8 file in the package root:
[flake8] deny-imports = # Don't allow models importing controllers myapp.models=myapp.controllers # Don't allow controllers to import sqlalchemy directly myapp.controllers=sqlalchemy
License
Licensed under either of
Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for flake8-import-graph-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 186db815b9a99dc67332e107d24e3ecd26fb255ebd36d23941b33f1cd7dba49b |
|
MD5 | d174df220b003ef681d1d864cc54019d |
|
BLAKE2b-256 | 4a68ded6e6e4329d60fc3617fc4a4c6feb9651c0f1be957ebf16e77f1c0d7f5d |