This Flake8 plugin is for checking imports isolations.
Project description
flake8_isolated_packages
This Flake8 plugin is for checking imports isolations.
One rule: Any module from specified package could not be import in another package
Quick Start Guide
-
Install
flake8-isolated-packages
from PyPI with pip::pip install flake8-isolated-packages
-
Configure a mark that you would like to validate::
cd project_root/ vi setup.cfg
-
Add to file following:
[flake8] isolated_packages = service, tests test_folders = tests
-
Run flake8::
flake8 .
flake8 codes
- FIP100: You try to import from isolated package
Settings
isolated_packages
It specifies a list of folders, that cannot be imported outside of their package
test_folders
It specifies a list of folders, that contains tests and in which can be imported something from even isolated packages
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for flake8_isolated_packages-2.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f490635ac9097937da512f9a9616eb28f29dc7dd2a1fd7e96eead2eb9fc62692 |
|
MD5 | e979b9eef361af3a40e1a9c763455e97 |
|
BLAKE2b-256 | 563b293fbf06a1f41b0462f4d84b2dbd0a8e8b52f095aa111c48ee8cd41f4c37 |
Close
Hashes for flake8_isolated_packages-2.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 008163b446e53619d1a938596534d1032a30250ac0a5f4f854af32fe5be43797 |
|
MD5 | ff9f6ae81cc671952a300e051b29914e |
|
BLAKE2b-256 | 5a25b1d3e0f78ecdb4f2dc01d086f0a117173b5252c3bbfcc38bdcd101b7b562 |