Skip to main content

Linting dotenv files like a charm!

Project description

dotenv-linter Build Status Coverage Python Version Documentation Status Dependencies Status

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.


pip install dotenv-linter

See Usage section to get started.


There are many things that can go wrong in your .env files:

# Next line has leading space which will be removed:

# Equal signs should not be spaced:

# 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`:

And much more! You can find the full list of violations in our docs.


Special thanks goes to Ignacio Toledo for creating an awesome logo for the project.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
dotenv_linter-0.1.4-py3-none-any.whl (43.3 kB) Copy SHA256 hash SHA256 Wheel py3
dotenv-linter-0.1.4.tar.gz (15.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page