Files
website-v2/.pre-commit-config.yaml
Natalia 2e0f083dad Run pre-commit checks before landing changes.
Add `pre-commit` to the requirements list, and updated the version it uses.
Also removed the `sample.adoc` since the relevant test always creates it (and
it was causing spurious lint check errors).
2023-06-14 16:37:06 -03:00

41 lines
1.0 KiB
YAML

default_language_version:
python: python3.11
exclude: .*migrations\/.*|static\/img\/.*|static\/animations\/.*|kube\/boost\/templates\/.*\.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/ambv/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.272
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/rtts/djhtml
rev: 3.0.6
hooks:
- id: djhtml
entry: djhtml --tabwidth 2
files: .*/templates/.*\.html$
alias: autoformat
- repo: local
hooks:
- id: rustywind
name: rustywind Tailwind CSS class linter
language: node
additional_dependencies:
- rustywind@0.16.0
entry: rustywind
args: [ --write, templates ]
types_or: [ html ]