-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (45 loc) · 1.75 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
48 lines (45 loc) · 1.75 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
36
37
38
39
40
41
42
43
44
45
46
47
48
# Pre-commit hooks for manus-agent.
#
# Install:
# pip install pre-commit # already in [dev] deps
# pre-commit install # register the git hook
#
# Run manually against all files:
# pre-commit run --all-files
#
# Hooks run automatically on every `git commit` to catch issues before CI.
repos:
# ── ruff: linting + auto-fix ─────────────────────────────────────────────
- repo: https://github.com/astral-sh/ruff-pre-commit
# Keep in sync with the `ruff` version in pyproject.toml [dev] deps.
rev: v0.4.4
hooks:
- id: ruff
args: [--fix]
name: ruff (lint + autofix)
- id: ruff-format
name: ruff (format)
# ── standard trailing-whitespace / EOF hygiene ───────────────────────────
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: "^tests/|^docs/"
- id: end-of-file-fixer
exclude: "^tests/|^docs/"
- id: check-yaml
name: validate YAML files
- id: check-toml
name: validate TOML files
- id: check-merge-conflict
- id: debug-statements
name: detect debug statements (pdb, breakpoint)
# ── mypy: static type checking ────────────────────────────────────────────
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
name: mypy (type check)
args: [--ignore-missing-imports]
additional_dependencies: [pydantic>=2.0.0, toml>=0.10.2]
files: ^src/