Skip to main content

Illegal import checker

Build Status Coverage Status

An extension for Flake8 to make sure that certain packages aren’t imported in a directory

Plugin for Flake8

When both Flake8 and flake8-illegal-import are installed, the plugin is available in flake8:

$ flake8 --version
3.6.0 (flake8-illegal-import: 0.1.0, […]

Parameters

This module requires 2 parameters: –illegal-import-dir={path} –illegal-import-packages={pkg1},{pkg2}

E.g usage:

$ flake8 ./sample.py --illegal-import-dir=./ --illegal-import-packages=os --select=II101

>>/home/…/test/sample.py:14:1: II101 importing this package is forbidden in this directory (os)

Error codes

This plugin is using the following error codes:

Presence of forbidden imports

II101

importing this package is forbidden in this directory {pkg}

Operation

The plugin will go through all imports and find out if forbidden packages are imported in the given directory

Changes

0.1.0 - 2019-01-XX

  • Initial release

Metadata

Release files for flake8-illegal-import 0.1.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-illegal-import 0.1.0
File Size Uploaded Provenance Actions
flake8-illegal-import-0.1.0.tar.gz 6.8 kB Without provenance Details for flake8-illegal-import-0.1.0.tar.gz

Release files / flake8-illegal-import-0.1.0.tar.gz

Download URL flake8-illegal-import-0.1.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
923135de84b591745b3e5a72ade57c37ee80709de6a5640b524c9e49f6dc13be
BLAKE2b-256 checksum
How to use checksums
4cd9bfc56199f034821bd9aed075d5bc24e7ed12f5316d4c06b082ef1d522ee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.5

Security for flake8-illegal-import 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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