Skip to content

Commit 8f3ea99

Browse files
committed
🔧 Update pre-commit, generate select on pre-commit, use local Ruff
1 parent 7c7c66d commit 8f3ea99

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

.pre-commit-config.yaml

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
4-
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
55
rev: v6.0.0
66
hooks:
7-
- id: check-added-large-files
8-
- id: check-toml
9-
- id: check-yaml
7+
- id: check-added-large-files
8+
- id: check-toml
9+
- id: check-yaml
1010
args:
11-
- --unsafe
12-
- id: end-of-file-fixer
13-
- id: trailing-whitespace
14-
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.14.10
11+
- --unsafe
12+
- id: end-of-file-fixer
13+
- id: trailing-whitespace
14+
15+
- repo: local
1616
hooks:
17-
- id: ruff
18-
args:
19-
- --fix
20-
- id: ruff-format
17+
- id: local-ruff-check
18+
name: ruff check
19+
entry: uv run ruff check --force-exclude --fix --exit-non-zero-on-fix
20+
require_serial: true
21+
language: unsupported
22+
types: [python]
23+
24+
- id: local-ruff-format
25+
name: ruff format
26+
entry: uv run ruff format --force-exclude --exit-non-zero-on-format
27+
require_serial: true
28+
language: unsupported
29+
types: [python]
30+
31+
- id: generate-select
32+
language: unsupported
33+
name: generate-select
34+
entry: uv run ./scripts/generate_select.py
35+
files: ^scripts/generate_select\.py|sqlmodel/sql/_expression_select_gen\.py\.jinja2$

0 commit comments

Comments
 (0)