2024-06-26 17:00:41 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
# Ruff version.
|
2024-10-09 12:28:13 +00:00
|
|
|
rev: v0.6.9
|
2024-06-26 17:00:41 +00:00
|
|
|
hooks:
|
2024-07-02 18:16:02 +00:00
|
|
|
- id: ruff # just check the code, and print the errors
|
|
|
|
- id: ruff # actually fix the fixable errors, but print nothing
|
|
|
|
args: ["--fix", "--silent"]
|
2024-06-26 17:00:41 +00:00
|
|
|
# Run the formatter.
|
2024-07-23 22:16:31 +00:00
|
|
|
- id: ruff-format
|
2024-10-07 23:33:21 +00:00
|
|
|
- repo: https://github.com/biomejs/pre-commit
|
|
|
|
rev: "v0.1.0" # Use the sha / tag you want to point at
|
2024-10-02 23:45:29 +00:00
|
|
|
hooks:
|
2024-10-07 23:33:21 +00:00
|
|
|
- id: biome-check
|
|
|
|
additional_dependencies: ["@biomejs/biome@1.9.3"]
|
2024-07-23 22:16:31 +00:00
|
|
|
- repo: https://github.com/rtts/djhtml
|
|
|
|
rev: 3.0.6
|
|
|
|
hooks:
|
|
|
|
- id: djhtml
|
|
|
|
name: format templates
|
|
|
|
entry: djhtml --tabwidth 2
|
|
|
|
types: ["jinja"]
|
|
|
|
- id: djcss
|
|
|
|
name: format scss files
|
|
|
|
entry: djcss --tabwidth 2
|
|
|
|
types: ["scss"]
|