mirror of
https://github.com/docling-project/docling.git
synced 2025-06-27 05:20:05 +00:00

* refactor with uv Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * constraints for onnxruntime Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * more constraints Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> --------- Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
28 lines
789 B
YAML
28 lines
789 B
YAML
fail_fast: true
|
|
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.11.5
|
|
hooks:
|
|
# Run the Ruff formatter.
|
|
- id: ruff-format
|
|
name: "Ruff formatter"
|
|
args: [--config=pyproject.toml]
|
|
files: '^(docling|tests|docs/examples).*\.(py|ipynb)$'
|
|
# Run the Ruff linter.
|
|
- id: ruff
|
|
name: "Ruff linter"
|
|
args: [--exit-non-zero-on-fix, --fix, --config=pyproject.toml]
|
|
files: '^(docling|tests|docs/examples).*\.(py|ipynb)$'
|
|
- repo: local
|
|
hooks:
|
|
- id: mypy
|
|
name: MyPy
|
|
entry: uv run --no-sync mypy docling
|
|
pass_filenames: false
|
|
language: system
|
|
files: '\.py$'
|
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
rev: 0.7.8
|
|
hooks:
|
|
- id: uv-lock
|