Skip to main content

flake8-allowlist-imports

PyPI - Version PyPI - Python Version


flake8 plugin which validates imports against an allowlist

installation

pip install flake8-allowlist-imports

flake8 codes

Code Description
FAI001 third party package is not allowed by the allowlist

rationale

flake8-allowlist-imports helps with constraining imports when building applications in a team

configuration

This plugin expects a comma-separated list of package names to allow. Packages can be specified via --import-allowlist or as part of the flake8 configuration:

[flake8]
import-allowlist = mypackage,requests

as a pre-commit hook

See pre-commit for instructions. Sample .pre-commit-config.yaml:

- repo: https://github.com/pycqa/flake8
  rev: 7.0.0
  hooks:
    - id: flake8
      additional_dependencies: [flake8-allowlist-imports==0.1.1]
      args:
        - --import-allowlist
        - mypackage,requests

Metadata

Release files for flake8-allowlist-imports 0.1.2

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-allowlist-imports 0.1.2
File Size Uploaded Provenance Actions
flake8-allowlist-imports-0.1.2.tar.gz 6.4 kB Without provenance Details for flake8-allowlist-imports-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-allowlist-imports 0.1.2
File Interpreter ABI Platform Actions
flake8_allowlist_imports-0.1.2-py3-none-any.whl Python 3 none any Details for flake8_allowlist_imports-0.1.2-py3-none-any.whl

Total release size: 10.3 kB

Release files / flake8-allowlist-imports-0.1.2.tar.gz

Download URL flake8-allowlist-imports-0.1.2.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
041c833d83b9599a315fa4a00b203969a982375a5347510baf871337af08c6ac
BLAKE2b-256 checksum
How to use checksums
6b50875227e175c43b86b8486accceaef193c971f0416a2109ea96bb34705fba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release files / flake8_allowlist_imports-0.1.2-py3-none-any.whl

Download URL flake8_allowlist_imports-0.1.2-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
227b20b871e7c3a1f08ad02a1d9b2ef0885e4d62a04241cd8eb1bf2e46655045
BLAKE2b-256 checksum
How to use checksums
2c76163eb8e5747332a0ac34bebf063b8f57e513351ebb4d775b5b2c497f6257
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Security for flake8-allowlist-imports 0.1.2

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.

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