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.1.tar.gz
(14.8 kB
view details)
Built Distribution
File details
Details for the file dotenv-linter-0.1.1.tar.gz
.
File metadata
- Download URL: dotenv-linter-0.1.1.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.8 CPython/3.6.6 Darwin/18.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d2556b626d8884a9223c4eb3a2535203e831c190aecf1f9010354992e1a3d56 |
|
MD5 | 4733d7e8eec2130f0643d53f164210fd |
|
BLAKE2b-256 | f9003f5a033711571baa2860f09c2220d41badc777e261c518c7796ba8a857f8 |
File details
Details for the file dotenv_linter-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: dotenv_linter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 43.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.8 CPython/3.6.6 Darwin/18.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b4be129e5ad4bf88069cd81db50efa20661d1f1b4c4a073532cc74f4ea9351f |
|
MD5 | f7bec241d6436255d4a3543ba5413dbf |
|
BLAKE2b-256 | 4bc042ec923e8cecfd953f415b2345a36ffe7d05caf350f197af3c289f017df1 |