mirror of
https://github.com/fastapi/sqlmodel.git
synced 2026-02-01 09:54:53 +08:00
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-toml
|
|
- id: check-yaml
|
|
args:
|
|
- --unsafe
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: local-ruff-check
|
|
name: ruff check
|
|
entry: uv run ruff check --force-exclude --fix --exit-non-zero-on-fix
|
|
require_serial: true
|
|
language: unsupported
|
|
types: [python]
|
|
|
|
- id: local-ruff-format
|
|
name: ruff format
|
|
entry: uv run ruff format --force-exclude --exit-non-zero-on-format
|
|
require_serial: true
|
|
language: unsupported
|
|
types: [python]
|
|
|
|
- id: generate-select
|
|
language: unsupported
|
|
name: generate-select
|
|
entry: uv run ./scripts/generate_select.py
|
|
files: ^scripts/generate_select\.py|sqlmodel/sql/_expression_select_gen\.py\.jinja2$
|