-
Notifications
You must be signed in to change notification settings - Fork 6
HTML/Jinja lint & format, pin pre-commit and GH Actions to commit hashes #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
17063f9
4562abf
2ecce5d
2d7e347
51369e8
272d43e
6b88883
bd4bd65
bc5c228
6ee38e5
dbbffd2
ed54625
0c0e318
721cab1
94fab4c
d61bc4f
1b25977
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,5 @@ updates: | |
| actions: | ||
| patterns: | ||
| - "*" | ||
| cooldown: | ||
| default-days: 7 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| build | ||
| clones | ||
| venv | ||
| __pycache__ | ||
| *.pyc |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| repos: | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: v0.15.9 | ||
| rev: 0c7b6c989466a93942def1f84baf36ddfcd60c83 # frozen: v0.15.14 | ||
| hooks: | ||
| - id: ruff-check | ||
| args: [--fix, --exit-non-zero-on-fix] | ||
| - id: ruff-format | ||
|
|
||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v6.0.0 | ||
| rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0 | ||
| hooks: | ||
| - id: check-added-large-files | ||
| - id: check-case-conflict | ||
|
|
@@ -20,12 +20,12 @@ repos: | |
| - id: trailing-whitespace | ||
|
|
||
| - repo: https://github.com/python-jsonschema/check-jsonschema | ||
| rev: 0.37.1 | ||
| rev: 943377262562a12b57292fc98fabd7dbf81451fe # frozen: 0.37.2 | ||
| hooks: | ||
| - id: check-github-workflows | ||
|
|
||
| - repo: https://github.com/rhysd/actionlint | ||
| rev: v1.7.12 | ||
| rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12 | ||
| hooks: | ||
| - id: actionlint | ||
|
|
||
|
|
@@ -35,16 +35,22 @@ repos: | |
| - id: check-useless-excludes | ||
|
|
||
| - repo: https://github.com/pre-commit/mirrors-mypy | ||
| rev: v1.20.0 | ||
| rev: d2823d321df3af8f878f7ee3414dc94d037145b9 # frozen: v2.1.0 | ||
| hooks: | ||
| - id: mypy | ||
| additional_dependencies: [types-docutils, types-polib>=1.2.0.20250114, types-requests] | ||
|
|
||
| - repo: https://github.com/francescorubbo/deptry-pre-commit | ||
| rev: v0.25.1 | ||
| rev: 14b9099e8ca0e47a3ee8685e951ee66254a9846f # frozen: v0.25.1 | ||
| hooks: | ||
| - 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 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems like a dead project, no releases since 2024, are there no alternatives? It seems to work alright currently.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My quick research implied it is mature and stable, and there's no better alternative. It looks stagnant on PyPI, but the repo still receives commits. The GitHub project had updates as recently as Nov 2025, and the docs were updated in 2026, which indicates some ongoing maintenance.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The fact they have Renovate set up to do updates multiple times a day, and automerge them without human review, is a bit odd: https://github.com/djlint/djLint/commits/master/ Also no cooldown, so a very good way to be among the very first to be exposed to a new vulnerability... https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns We're on a pinned tag not on
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've opened an issue with a suggestion to add the cooldown: djlint/djLint#1783. It's only library like that that offers an autoformatter.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seeing as the whole litellm thing happened the day after Hugo’s message, I think we should wait with this PR till they make such changes.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| rev: 9112cb64851c95a7802358af285d21ad8b7f6437 # frozen: v1.36.4 | ||
| hooks: | ||
| - id: djlint-reformat-jinja | ||
| - id: djlint-jinja | ||
|
|
||
| ci: | ||
| autoupdate_schedule: quarterly | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ignore="J018" | ||
| indent=2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a Zizmor hook, but that can be a followup.