forked from PrefectHQ/prefect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (50 loc) · 1.61 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
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/agents\.py|
src/prefect/server/models/artifacts\.py|
src/prefect/server/models/concurrency_limits_v2\.py|
src/prefect/server/models/concurrency_limits\.py|
src/prefect/server/models/flows\.py|
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: ./scripts/generate_mintlify_openapi_docs.py
pass_filenames: false
files: |
(?x)^(
.pre-commit-config.yaml|
src/prefect/server/api/.*|
src/prefect/server/schemas/.*|
scripts/generate_mintlify_openapi_docs.py
)$