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-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2528a2b72b2186cbb40d4058a799b626ee073dbc65e4a8f5af9bf5873dd1cfe2 |
|
MD5 | 02b4022d94ca920d98002aea36e10648 |
|
BLAKE2b-256 | 8c99719aee72717ac23fd01c808575615e6d43ae4ccb502a55e045370a64b2e0 |
Close
Hashes for flake8_isolated_packages-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc128d792db5465a2a509ed370c30ea752b40978cf2997434cc97c639d84c284 |
|
MD5 | fc0476b918dec3c0f51e4c2cce5bae87 |
|
BLAKE2b-256 | b6c6c209579f2954a74a048534c42755fd847a29b17b29ae910e22ed7247580f |