forked from qodo-benchmark/prefect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
84 lines (82 loc) · 2.35 KB
/
.pre-commit-config.yaml
File metadata and controls
84 lines (82 loc) · 2.35 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
84
default_install_hook_types:
- pre-commit
- pre-push
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.1
hooks:
- id: ruff-check
language_version: python3
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli
exclude: package-lock.json|_vendor/.*|docs/styles/.*
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
additional_dependencies:
- pydantic>=1.10.0,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0
- types-cachetools==5.3.0.5
- types-pyyaml==6.0.12.9
files: |
(?x)^(
src/prefect/server/models/.*|
src/prefect/concurrency/.*|
src/prefect/events/.*|
src/prefect/input/.*
)$
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.6.17
hooks:
- id: uv-lock
- repo: local
hooks:
- id: check-ui-v2
name: Check UI v2
language: system
entry: sh
args:
[
"-c",
". $NVM_DIR/nvm.sh || true && cd ui-v2 && nvm use || true && npm i --no-upgrade --silent --no-progress && npm run check:staged",
]
files: |
(?x)^(
.pre-commit-config.yaml|
ui-v2/.*
)$
pass_filenames: false
- id: service-sync-ui-v2-openapi
name: Sync UI v2 OpenAPI
language: system
entry: sh
args:
[
"-c",
". $NVM_DIR/nvm.sh || true && cd ui-v2 && nvm use || true && npm i --no-upgrade --silent --no-progress && npm run service-sync",
]
files: |
(?x)^(
.pre-commit-config.yaml|
.pre-commit-config.yaml|
src/prefect/server/api/.*|
src/prefect/server/schemas/.*|
src/prefect/server/events/.*|
src/prefect/server/utilities/schemas/.*|
ui-v2/package.json
)$
pass_filenames: false
stages:
- pre-push