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]