代码拉取完成,页面将自动刷新
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
)$
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。