36 lines
849 B
YAML
36 lines
849 B
YAML
minimum_pre_commit_version: '3.5.0'
|
|
|
|
repos:
|
|
- repo: https://github.com/JohnnyMorganz/StyLua
|
|
rev: v2.3.1
|
|
hooks:
|
|
- id: stylua-github
|
|
name: stylua (Lua formatter)
|
|
files: \.lua$
|
|
pass_filenames: true
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.14.3
|
|
hooks:
|
|
- id: ruff-format
|
|
name: ruff (format)
|
|
files: \.py$
|
|
- id: ruff
|
|
name: ruff (lint imports)
|
|
args: ['--fix', '--select=I']
|
|
files: \.py$
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v4.0.0-alpha.8
|
|
hooks:
|
|
- id: prettier
|
|
name: prettier
|
|
files: \.(md|toml|ya?ml|sh)$
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: ty-type-check
|
|
name: ty (Python type checker)
|
|
language: system
|
|
entry: uv run ty check
|
|
types: [python]
|