Linting dotenv files like a charm!
Project description
dotenv-linter
Simple linter for .env
files.
While .env
files are very simple it is required to keep them consistent.
This tool offers a wide range of consistency rules and best practices.
And it integrates perfectly to any existing workflow.
Installation
pip install dotenv-linter
See Usage section to get started.
Examples
There are many things that can go wrong in your .env
files:
# Next line has leading space which will be removed:
SPACED=
# Equal signs should not be spaced:
KEY = VALUE
# Quotes won't be preserved after parsing, do not use them:
SECRET="my value"
# Beware of duplicates!
SECRET=Already defined ;(
# Respect the convention, use `UPPER_CASE`:
kebab-case-name=1
snake_case_name=2
And much more! You can find the full list of violations in our docs.
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
dotenv-linter-0.1.2.tar.gz
(14.8 kB
view hashes)
Built Distribution
Close
Hashes for dotenv_linter-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a687c897935748fc7cee888a6452bb89221bec729e444abfb0e285376470ff0 |
|
MD5 | 90f21ef3aedcfc1565f6bfcf1805ee8c |
|
BLAKE2b-256 | dcb72c6d7b7468480e4e5b4d84418865ec5713bc6b3a1dce2a8083a3ca869fbe |