Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ insert_final_newline = true

[*.py]
indent_size = 4

[*.min.css]
insert_final_newline = false

[*.min.js]
insert_final_newline = false
37 changes: 7 additions & 30 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,27 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- repo: https://github.com/adamchainz/django-upgrade
rev: "1.24.0" # replace with latest tag on GitHub
rev: "1.28.0" # replace with latest tag on GitHub
hooks:
- id: django-upgrade
args: [--target-version, "5.1"] # Replace with Django version
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.8
rev: v0.13.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/thibaudcolas/curlylint
rev: v0.13.1
- repo: https://github.com/djlint/djLint
rev: v1.36.4
hooks:
- id: curlylint
exclude: 'templates/snippets/timetable_search\.html'
- repo: https://github.com/adamchainz/djade-pre-commit
rev: "1.4.0"
hooks:
- id: djade
args: [--target-version, "5.1"]
- repo: https://github.com/rtts/djhtml
rev: 3.0.7
hooks:
- id: djhtml
args:
- --tabwidth=2
exclude: markdown_editor.html
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types_or:
- css
- xml
additional_dependencies:
- prettier@2.5.1
- "@prettier/plugin-xml@1.2.0"
- id: djlint-reformat-django
- id: djlint-django
Loading