Skip to main content

flake8-env-patterns

flake8 plugin which validates access to environment variables against allowed patterns

installation

pip install flake8-env-patterns

flake8 codes

Code Description
FEP001 environment variable does not match any allowed pattern

rationale

flake8-env-patterns helps with enforcing a convention for environment variable names when building a python application.

configuration

This plugin expects a comma-separated list of regex patterns to validate environment variable access against. Patterns can be specified via --env-variable-patterns or as part of the flake8 configuration:

[flake8]
env-variable-patterns = AWS_.*,MYAPP_.*

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-env-patterns==0.2.0]
      args:
        - --env-variable-patterns
        - AWS_.*,MYAPP_.*

Metadata

Release files for flake8-env-patterns 0.2.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-env-patterns 0.2.2
File Size Uploaded Provenance Actions
flake8-env-patterns-0.2.2.tar.gz 6.6 kB Without provenance Details for flake8-env-patterns-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-env-patterns 0.2.2
File Interpreter ABI Platform Actions
flake8_env_patterns-0.2.2-py3-none-any.whl Python 3 none any Details for flake8_env_patterns-0.2.2-py3-none-any.whl

Total release size: 10.4 kB

Release files / flake8-env-patterns-0.2.2.tar.gz

Download URL flake8-env-patterns-0.2.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
23c2f80bce6bc9d6826e32dd94e9c4c9fb9166e186394fd4532f3e64951c8e3d
BLAKE2b-256 checksum
How to use checksums
7bc328d8932a463e972db3cb23cda8a9e309bcaab3ecf7cedcced1058b7dfacf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Release files / flake8_env_patterns-0.2.2-py3-none-any.whl

Download URL flake8_env_patterns-0.2.2-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9298e3d6aeace000e57304242c7fe281f9418182b4e4d7faa5eec5ae55ed8ae
BLAKE2b-256 checksum
How to use checksums
25a987db86907c5355c5af255809f19ae2d5888bbb97b6e3f8d8e233e4df4c8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.12

Security for flake8-env-patterns 0.2.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