Skip to main content

Linting dotenv files like a charm!

Project description

dotenv-linter

wemake.services 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.

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


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.3.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

dotenv_linter-0.1.3-py3-none-any.whl (43.2 kB view details)

Uploaded Python 3

File details

Details for the file dotenv-linter-0.1.3.tar.gz.

File metadata

  • Download URL: dotenv-linter-0.1.3.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.10 CPython/3.6.6 Darwin/18.2.0

File hashes

Hashes for dotenv-linter-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5ec663b51765f951ecf3aee53b85e827745d4d0ca2667a1eda8f683642c572f0
MD5 6cbefe3b2fdd048ced2861c65dcd7a80
BLAKE2b-256 dc57ca34bf6de4b74415ef8f5f2ef373853ff91f6b1e0a6cc5af843bf73051e8

See more details on using hashes here.

File details

Details for the file dotenv_linter-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: dotenv_linter-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 43.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.10 CPython/3.6.6 Darwin/18.2.0

File hashes

Hashes for dotenv_linter-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6b082b9b5496c500afa7cac2993777fd0e71110dd5152ce0b5e242e9d747d6a6
MD5 c6ca5eee5347503a024412d410314106
BLAKE2b-256 2710309e01fa9fde57fdb503bc64a6b6bb4a26a7e820dee52051be6893382ca2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page