mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-09-21 19:32:34 +03:00
Linters adjustment for this project
This commit is contained in:
parent
13003f0ccb
commit
39eaf9b9e1
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user