Metadata-Version: 2.1
Name: djlint
Version: 0.0.2
Summary: Django Template Linter
Home-page: https://github.com/Riverside-Healthcare/djlint
Author: Christopher Pickering
Author-email: cpickering@rhc.net
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Provides-Extra: colorama
License-File: LICENSE

# djlint

Simple Django template linter.

## Install

```sh
pip install djlint
```

## Usage

```sh
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.


