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.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29205633d5cc7c68dfe600b0feec1a0239853aeb5e6ef2685a81d8a6ccfa5452 |
|
MD5 | 772482e48b70893d99e8b1d1810f41e2 |
|
BLAKE2b-256 | 6773329c7b27e386fe9a6689a2e4865b7f182edee7c67263ece7af87dca57770 |
Close
Hashes for flake8_isolated_packages-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b85da7b93acd0d3bac9276b4c8979e48bfa667abf346715bb4ac4a9c748ca1 |
|
MD5 | d39ff656bf5958bceb314172f4e7221d |
|
BLAKE2b-256 | cf9f161076eef60de49b1471b9b831332d552fc765ccf7579a7d6116d1961da5 |