-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
.pre-commit-config.yaml
75 lines (73 loc) · 2.28 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.2.1"
hooks:
- id: ruff
language_version: python3
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
exclude: package-lock.json|_vendor/.*|docs/styles/.*
- repo: https://github.com/netromdk/vermin
rev: v1.6.0
hooks:
- id: vermin
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
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: local
hooks:
- id: generate-mintlify-openapi-docs
name: Generating OpenAPI docs for Mintlify
language: system
entry: uv run --with 'pydantic>=2.9.0' ./scripts/generate_mintlify_openapi_docs.py
pass_filenames: false
files: |
(?x)^(
.pre-commit-config.yaml|
src/prefect/server/api/.*|
src/prefect/server/schemas/.*|
src/prefect/server/events/.*|
scripts/generate_mintlify_openapi_docs.py
)$
- repo: local
hooks:
- id: generate-settings-schema
name: Generating Settings Schema
language: system
entry: uv run --with 'pydantic>=2.9.0' ./scripts/generate_settings_schema.py
pass_filenames: false
files: |
(?x)^(
.pre-commit-config.yaml|
src/prefect/settings/models/.*|
scripts/generate_settings_schema.py
)$
- repo: local
hooks:
- id: generate-settings-ref
name: Generating Settings Reference
language: system
entry: uv run --with 'pydantic>=2.9.0' ./scripts/generate_settings_ref.py
pass_filenames: false
files: |
(?x)^(
.pre-commit-config.yaml|
src/prefect/settings/models/.*|
scripts/generate_settings_ref.py
)$