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.

dotenv-logo

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.

Gratis

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.

Source Distribution

dotenv-linter-0.1.4.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

dotenv_linter-0.1.4-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dotenv-linter-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6c19288b4fb68844aba13b612905db4d4567f6845d244edcd292acd8a9e345c4
MD5 01f1686ea983e6f41eda404f755c97a1
BLAKE2b-256 4a84d69e402851896d61d0b022eb5656686ca25e0e023d86b52ad850fab01c50

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dotenv_linter-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4932a0209e2fdcd42c4ce2e3e1f121e836209b8401cb35ab6bc99cc22c7808e9
MD5 9166701b1a7923ac0fa73d2f2966e7ac
BLAKE2b-256 d4520e342d9d50b3e03f448a90b0af2366c5a1a2b22d0359e29bb98ad50bb4ff

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