Linters adjustment for this project

This commit is contained in:
Alejandro Franco 2023-10-13 14:48:31 -06:00
parent 13003f0ccb
commit 39eaf9b9e1
2 changed files with 13 additions and 5 deletions

View File

@ -7,7 +7,11 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
exclude: '\.min\.(css|js)$'
exclude_types:
- svg
- map
# - id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
@ -55,7 +59,11 @@ repos:
rev: v1.34.0
hooks:
- id: djlint-reformat-django
files: "templates"
exclude: r'gto_supply/static/.*'
- id: djlint-django
files: "templates"
exclude: r'gto_supply/static/.*'
# sets up .pre-commit-ci.yaml to ensure pre-commit dependencies stay up to date
ci:

View File

@ -94,12 +94,12 @@ generated-members = [
# ==== djLint ====
[tool.djlint]
blank_line_after_tag = "load,extends"
blank_line_after_tag = "load,extends,endblock"
close_void_tags = true
format_css = true
format_js = true
format_css = false
format_js = false
# TODO: remove T002 when fixed https://github.com/Riverside-Healthcare/djLint/issues/687
ignore = "H006,H030,H031,T002"
ignore = "H006,H030,H031,T002,H020,H023,H033,D018"
include = "H017,H035"
indent = 2
max_line_length = 119