Sith/.pre-commit-config.yaml

22 lines
614 B
YAML
Raw Permalink Normal View History

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
2024-09-01 22:58:52 +00:00
rev: v0.5.7
hooks:
- id: ruff # just check the code, and print the errors
- id: ruff # actually fix the fixable errors, but print nothing
args: ["--fix", "--silent"]
# Run the formatter.
- id: ruff-format
- 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"]