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 and usage
pip install dotenv-linter
And then run it:
dotenv-linter .env .env.template
See Usage section for more information.
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 duplicate keys!
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.
Gratis
Special thanks goes to Ignacio Toledo for creating an awesome logo for the project.
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
File details
Details for the file dotenv-linter-0.1.5.tar.gz
.
File metadata
- Download URL: dotenv-linter-0.1.5.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.6.6 Darwin/18.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 425381b1772fa9608afc524a795cba6f771c6c74bf9f799f33805085ce57b1f7 |
|
MD5 | 7059e52b801730a6499757a35cc3eb12 |
|
BLAKE2b-256 | 37f62892debd54dff854aad934f3dc59a03bb4d8e45675b4b7010863d4b39776 |
File details
Details for the file dotenv_linter-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: dotenv_linter-0.1.5-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.6.6 Darwin/18.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6118bbfced641be67f1b2a4aeeae3ec20615c13d25d8cc41980768252e2c3984 |
|
MD5 | 0ee2b9e1685d4ec03dc5777e4a70cf0b |
|
BLAKE2b-256 | 6fd37b87cabc24c41696f80e841351c7b34c6aff4c9929efe17c270f2192ada9 |