Files
website-v2/.pre-commit-config.yaml
Greg Newman 34a64a9ee2 🔨 Adding pre-commit
Adds:

* Ruff and a little config in pyproject.toml
* djhtml
* black
* rustywind
2023-04-28 09:25:47 -04:00

38 lines
941 B
YAML

default_language_version:
python: python3.9
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.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/charliermarsh/ruff-pre-commit
rev: 'v0.0.263'
hooks:
- id: ruff
- repo: https://github.com/rtts/djhtml
rev: 'v2.0.0'
hooks:
- id: djhtml
entry: djhtml --tabwidth 2
files: .*/templates/.*\.html$
alias: autoformat
- repo: https://github.com/ambv/black
rev: 22.8.0
hooks:
- id: black
- 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 ]