Skip to main content

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.3

Configure it, by putting .flake8 file in the package root:

deny-imports =
    # Don't allow models importing controllers
    # Don't allow controllers to import sqlalchemy directly


Licensed under either of


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.

Files for flake8-import-graph, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size flake8-import-graph-0.1.3.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page