Skip to main content

Django Template Linter

Project description

djlint

Simple Django template linter.

Install

pip install djlint

Usage

djlint <file or path>

Optional args

Arg Definition Default
-e, --extension File extension to lint. default=html

Rules

Error Codes

Code Meaning
E001 Variables should be wrapped in a single whitespace. Ex: {{ this }}
E002 Double quotes should be used in tags. Ex {% extends "this.html" %}

Warning Codes

Code Meaning
W003 Endblock should have name. Ex: {% endblock body %}.
W004 Status urls should follow {% static path/to/file %} pattern.

0.0.1

Initial release.

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

djlint-0.0.4.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djlint-0.0.4-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file djlint-0.0.4.tar.gz.

File metadata

  • Download URL: djlint-0.0.4.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.0

File hashes

Hashes for djlint-0.0.4.tar.gz
Algorithm Hash digest
SHA256 db9952a3393e6f94757587565a9e52cad555844ceb1bfcf42cfcdc195b9e6573
MD5 728a9ca0cf30d5521b2bfcb12cdd28d6
BLAKE2b-256 036dfe439d3df000c8afd6062d8d23e8d9ca1fe7c654c2d30731ff1c53a22b01

See more details on using hashes here.

File details

Details for the file djlint-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: djlint-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.0

File hashes

Hashes for djlint-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ef78cba4343de5647f513217c4504cd8c2b14b909347ebb1c8da3eea9bb79b2
MD5 5e0c8d6b6f4d4849464258071380cb18
BLAKE2b-256 9fb7b6792a125f479b1adcefa7f6a9256b86422f00abd635730eb611f64e2bbc

See more details on using hashes here.

Supported by

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