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
File details
Details for the file flake8-isolated-packages-0.1.3.tar.gz
.
File metadata
- Download URL: flake8-isolated-packages-0.1.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3463c1d4ce395fdfd78ce1197405d1a2c17e6ff01c5d2a8ed90c649b2cd3ce0 |
|
MD5 | 1b215d72ae6d8f95cff7e74b17c61668 |
|
BLAKE2b-256 | b9a5de204fa88b57721e25542e44f8c8d9b79fc30e96ca798bb23c3e4ec8a75f |