Skip to main content

This Flake8 plugin is for checking imports isolations.

Reason this release was yanked:

not work

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-1.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

flake8_isolated_packages-1.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flake8_isolated_packages-1.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.6.8 Darwin/21.1.0

File hashes

Hashes for flake8_isolated_packages-1.0.1.tar.gz
Algorithm Hash digest
SHA256 59c055ccf3d1bd856729106cddcc413ba7e1fd7767d3687286d33846f05cf6ce
MD5 c1873dd2e4ad7cba7b63372005982b8d
BLAKE2b-256 22d3febbf50b89072d33dce6594815c8b9f08445fc489616f70100fa60a2e654

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flake8_isolated_packages-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d48df8207c4e18e0193c1b97a017d692f5ab03fa3d1e301f08b188728e5f1bd7
MD5 2845460af25e9452b2665f979cf2be76
BLAKE2b-256 f062290db3ff48e46f5eccaf7404ba7b8993f1f1c3ddf7b771b2bf28fbea2f3c

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