Skip to main content

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:

[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

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.

Metadata

Release files for flake8-import-graph 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-import-graph 0.1.3
File Size Uploaded
flake8-import-graph-0.1.3.tar.gz 2.8 kB Details

Release files / flake8-import-graph-0.1.3.tar.gz

Download URL flake8-import-graph-0.1.3.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d06a509685d90ec655b441c99aa9a8b4d5d6a699613d83f928147b99b4320370
BLAKE2b-256 checksum
How to use checksums
5653c30aea9272dfadb187b2921dc458c6eb19be72c7cd4f8d78acfd1fbe34d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page