-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
35 lines (35 loc) · 1.05 KB
/
.pre-commit-config.yaml
File metadata and controls
35 lines (35 loc) · 1.05 KB
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
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_graph|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_graph|tests|docs/examples).*\.(py|ipynb)$'
- repo: local
hooks:
- id: mypy
name: MyPy
entry: bash -c "source .venv/bin/activate && mypy docling_graph"
pass_filenames: false
language: system
files: '\.py$'
- repo: local
hooks:
- id: pytest
name: Pytest
entry: bash -c "source .venv/bin/activate && pytest --cov=docling_graph --cov-report=xml tests"
pass_filenames: false
language: system
files: '\.py$'
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.8.3
hooks:
- id: uv-lock