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
Close
Hashes for flake8-isolated-packages-2.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 249036f51a80d2db8cc60c1f840a2fdb1e40f3176b46238d682bbb0d13db91eb |
|
MD5 | 603af52570df9ce9cdba50a12fb47dc6 |
|
BLAKE2b-256 | 23b9a01b61d9c15f42fd00b5e8261cd5301dd8a5110142379006b3c179a7749f |