Skip to main content

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

  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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8_isolated_packages-2.3.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

flake8_isolated_packages-2.3.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file flake8_isolated_packages-2.3.0.tar.gz.

File metadata

  • Download URL: flake8_isolated_packages-2.3.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.5 Darwin/22.3.0

File hashes

Hashes for flake8_isolated_packages-2.3.0.tar.gz
Algorithm Hash digest
SHA256 b13edd7da40b088e99dc187818411e4e073c1f9b1ef00bdf5ae80763ca4e5dd5
MD5 434a2b8d64c090776010d36d722bad4b
BLAKE2b-256 7c7632400150fb288317b34262389c04ee8490d2ca60161c37c9e31e7f7ca060

See more details on using hashes here.

File details

Details for the file flake8_isolated_packages-2.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_isolated_packages-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01b4aed6e18ab53eb48f62330b38452f800ddde99ecd8c2a8234f0e12edfc7b9
MD5 9346f17de98b06e6f0745f53557f62ed
BLAKE2b-256 704248712287ba70ad848a593f820f19859fc9cc11a14038f7da5031fb2c6e4d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page