flake8 plugin which checks environment variable access against allowed patterns
Project description
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 |
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.1.0]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for flake8-env-patterns-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb069a61096bd3e9c95dec953f8e29fea523d66852481bf69ee5ce994ca8e46b |
|
MD5 | 07154d03e4d96a050c7072da3aba9b7e |
|
BLAKE2b-256 | 095633f8fb7bcc5d7d790d9a336b3e111ea96d06fbdb41f5719ebafb0837fa7e |
Close
Hashes for flake8_env_patterns-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bb0042b1dc449adc507a97748880c19edc5f9bbc0983019af9ddf65f01b8504 |
|
MD5 | 02bab148ddaf11e0e5df93b5e59412d3 |
|
BLAKE2b-256 | ce466eb1f81f57b26e0def8b780cb94e65c7d0e0040d2b24bbc5cc8084a40925 |