Files
AI/참고/ontocast-main/.pre-commit-config.yaml

47 lines
1.2 KiB
YAML
Raw Normal View History

2026-05-12 19:40:31 +09:00
fail_fast: false
repos:
# Python linting and formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
- id: ruff-check
args: [--fix, --ignore, E722, --ignore, W293, --ignore, E501]
- id: ruff-format
# Type checking
- repo: local
hooks:
- id: ty
name: ty check
entry: bash -c 'ty check ontocast test'
language: system
pass_filenames: false
always_run: true
# YAML formatting
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.15.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '4', --preserve-quotes]
# JSON formatting
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: pretty-format-json
args: [--autofix, --indent, '4', --no-sort-keys]
# TOML formatting and sorting
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.15.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.3
hooks:
- id: toml-sort
args: [-ia]