-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
65 lines (60 loc) · 1.95 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
65 lines (60 loc) · 1.95 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
exclude: ^(tests|docs|examples)/
- id: trailing-whitespace
exclude: ^(tests|docs|examples)/
- id: check-added-large-files
args: [--maxkb=100]
exclude: ^(tests|docs|examples)/
- id: check-ast
exclude: ^(tests|docs|examples)/
- id: check-builtin-literals
exclude: ^(tests|docs|examples)/
- id: check-case-conflict
exclude: ^(tests|docs|examples)/
- id: check-docstring-first
exclude: ^(tests|docs|examples)/
- id: check-merge-conflict
exclude: ^(tests|docs|examples)/
- id: debug-statements
exclude: ^(tests|docs|examples)/
- id: detect-private-key
exclude: ^(tests|docs|examples)/
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
exclude: ^(tests|docs|examples)/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff-format
exclude: ^(tests|docs|examples)/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: ^(tests|docs|examples)/
- repo: https://github.com/PyCQA/bandit
rev: 1.7.9
hooks:
- id: bandit
args: [-c, pyproject.toml]
additional_dependencies: ["bandit[toml]"]
exclude: ^(tests|docs|examples)/
# Run mypy from the project venv (synced via `uv sync --dev`) so it resolves
# real dependencies and honours the [tool.mypy] config in pyproject.toml.
# Checks the whole package once (pass_filenames: false) rather than per-file.
- repo: local
hooks:
- id: mypy
name: mypy
entry: uv run mypy agentflow/
language: system
types: [python]
pass_filenames: false
exclude: ^(tests|docs|examples|normal_tests)/