Files
docling-serve/.pre-commit-config.yaml
2025-02-19 09:53:07 +01:00

48 lines
1.1 KiB
YAML

fail_fast: true
repos:
- repo: local
hooks:
- id: system
name: Black
entry: uv run --no-sync black docling_serve tests
pass_filenames: false
language: system
files: '\.py$'
- repo: local
hooks:
- id: system
name: isort
entry: uv run --no-sync isort docling_serve tests
pass_filenames: false
language: system
files: '\.py$'
- repo: local
hooks:
- id: autoflake
name: autoflake
entry: uv run --no-sync autoflake docling_serve tests
pass_filenames: false
language: system
files: '\.py$'
- repo: local
hooks:
- id: system
name: flake8
entry: uv run --no-sync flake8 docling_serve
pass_filenames: false
language: system
files: '\.py$'
- repo: local
hooks:
- id: system
name: MyPy
entry: uv run --no-sync mypy docling_serve
pass_filenames: false
language: system
files: '\.py$'
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.6.1
hooks:
- id: uv-lock