diff --git a/.gitignore b/.gitignore index 23175579b..4d0066e56 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ build clones venv +__pycache__ +*.pyc diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9cb0ff04f..e21897bd1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,5 +46,11 @@ repos: - id: deptry args: [".", "--per-rule-ignores", "DEP002=python-docs-theme", "--package-module-name-map", "gitpython=git,sphinx-lint=sphinxlint"] + - repo: https://github.com/djlint/djLint + rev: v1.36.4 + hooks: + - id: djlint-reformat-jinja + - id: djlint-jinja + ci: autoupdate_schedule: quarterly diff --git a/djlint.toml b/djlint.toml new file mode 100644 index 000000000..7eab3e9aa --- /dev/null +++ b/djlint.toml @@ -0,0 +1,2 @@ +ignore="J018" +indent=2 diff --git a/templates/base.html.jinja b/templates/base.html.jinja index de79078f5..980d31e15 100644 --- a/templates/base.html.jinja +++ b/templates/base.html.jinja @@ -1,120 +1,154 @@ - + - -
- - - - -