Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
83 lines (83 loc) · 2.54 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
83 lines (83 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
fail_fast: true
repos:
- repo: local
hooks:
- id: ruff-format
name: ruff-format
entry: uv run --no-sync ruff format
language: system
types_or: [python, markdown]
require_serial: true
- id: ruff-check
name: ruff-check
entry: uv run --no-sync ruff check
language: system
args: [--fix, --exit-non-zero-on-fix]
types_or: [python, pyi]
require_serial: true
- repo: local
hooks:
- id: codespell
name: codespell
entry: uv run --no-sync codespell
language: system
types: [text]
require_serial: true
- repo: local
hooks:
- id: update-pyi-files
name: update-pyi-files
description: Update pyi files as needed
entry: uv run --no-sync python scripts/make_pyi.py
language: system
always_run: true
require_serial: true
- repo: local
hooks:
- id: hash-examples
name: hash-examples
description: Update the examples/playground content hash as needed
entry: uv run --no-sync python scripts/hash_examples.py
language: system
files: ^(examples/playground/|scripts/hash_examples\.py$)
pass_filenames: false
require_serial: true
- repo: local
hooks:
- id: unasync-reflex-build-sdk
name: unasync-reflex-build-sdk
description: Regenerate the synchronous reflex-build-sdk client and tests from the asynchronous source
entry: uv run --no-sync python packages/reflex-build-sdk/scripts/unasync.py
language: system
files: ^(packages/reflex-build-sdk/src/reflex_build_sdk/|packages/reflex-build-sdk/scripts/unasync\.py$|tests/units/reflex_build_sdk/)
pass_filenames: false
require_serial: true
- repo: local
hooks:
- id: pyright
name: pyright
entry: uv run --no-sync pyright
language: system
types: [python]
require_serial: true
- repo: local
hooks:
# The second opinion the assert_type examples exist for. Always runs: what
# these examples catch is a source change altering an inferred type, so
# scoping the hook to the examples themselves would never fire on the edit
# that broke them.
- id: ty
name: ty
entry: uv run --no-sync ty check --python-version 3.14 tests/type_checking
language: system
always_run: true
pass_filenames: false
require_serial: true
- repo: https://github.com/biomejs/pre-commit
rev: 19865851e014cbe6138e295365f95ca51bf953f8 # v0.6.1
hooks:
- id: biome-format
additional_dependencies: ['@biomejs/biome@2.4.8']
args: [--indent-width, '2', --indent-style, space]
exclude: (\.css$|docs/app/|packages/reflex-build-sdk/openapi\.json$)
require_serial: true