Skip to main content

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

  1. Install flake8-isolated-packages from PyPI with pip::

     pip install flake8-isolated-packages
    
  2. Configure a mark that you would like to validate::

     cd project_root/
     vi setup.cfg
    
  3. Add to file following:

     [flake8]  
     isolated_packages = service, tests  
     test_folders = tests
    
  4. 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

Metadata

Release files for flake8-isolated-packages 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-isolated-packages 2.3.0
File Size Uploaded
flake8_isolated_packages-2.3.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-isolated-packages 2.3.0
File Interpreter ABI Platform
flake8_isolated_packages-2.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / flake8_isolated_packages-2.3.0.tar.gz

Download URL flake8_isolated_packages-2.3.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b13edd7da40b088e99dc187818411e4e073c1f9b1ef00bdf5ae80763ca4e5dd5
BLAKE2b-256 checksum
How to use checksums
7c7632400150fb288317b34262389c04ee8490d2ca60161c37c9e31e7f7ca060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.9.5 Darwin/22.3.0

Release files / flake8_isolated_packages-2.3.0-py3-none-any.whl

Download URL flake8_isolated_packages-2.3.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01b4aed6e18ab53eb48f62330b38452f800ddde99ecd8c2a8234f0e12edfc7b9
BLAKE2b-256 checksum
How to use checksums
704248712287ba70ad848a593f820f19859fc9cc11a14038f7da5031fb2c6e4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.9.5 Darwin/22.3.0

Release history Release notifications | RSS feed

This release

2.3.0 This release

2 release files

2.2.0

2 release files

2.1.0

1 release file

2.0.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.2

1 release file

0.2.1

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page