https://github.com/christopherpickering/sublimelinter-contrib-djlint
Sublime linter interface for djlint, django template linting
https://github.com/christopherpickering/sublimelinter-contrib-djlint
Last synced: 8 months ago
JSON representation
Sublime linter interface for djlint, django template linting
- Host: GitHub
- URL: https://github.com/christopherpickering/sublimelinter-contrib-djlint
- Owner: christopherpickering
- License: mit
- Created: 2021-07-12T19:04:37.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T20:18:39.000Z (over 2 years ago)
- Last Synced: 2025-02-14T05:34:07.821Z (over 1 year ago)
- Language: Python
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SublimeLinter-contrib-djlint
================================
This linter plugin for [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter) provides an interface to [djlint](https://pypi.org/project/djlint/) for linting Django Templates.
## Installation
SublimeLinter must be installed in order to use this plugin.
Please use [Package Control](https://packagecontrol.io) to install the linter plugin.
Before installing this plugin, you must ensure that `djlint` is installed on your system.
```sh
pip install djlint
```
In order for `djlint` to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover [troubleshooting PATH configuration](http://sublimelinter.readthedocs.io/en/latest/troubleshooting.html#finding-a-linter-executable).
## Settings
Warnings can be ignored from the sublimelinter settings:
```json
// SublimeLinter Settings - User
{
"linters": {
"djlint": {
"ignore": "W013",
"python": "/path/to/python/3.7.2+/where/you/installed/djlint"
}
}
}
```
- SublimeLinter settings: http://sublimelinter.readthedocs.org/en/latest/settings.html
- Linter settings: http://sublimelinter.readthedocs.org/en/latest/linter_settings.html