forked from OpenHands/software-agent-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
56 lines (56 loc) · 1.79 KB
/
.pre-commit-config.yaml
File metadata and controls
56 lines (56 loc) · 1.79 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
---
repos:
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.1 # or other specific tag
hooks:
- id: yamlfmt
- repo: local
hooks:
- id: ruff-format
name: Ruff format
entry: uv
args: [run, ruff, format]
language: system
types: [python]
pass_filenames: true
always_run: false
- id: ruff-check
name: Ruff lint
entry: uv
args: [run, ruff, check, --fix, --exit-non-zero-on-fix]
language: system
types: [python]
pass_filenames: true
always_run: false
- id: pycodestyle
name: PEP8 style check (pycodestyle)
entry: uv
args: [run, pycodestyle, --max-line-length=88, '--ignore=E203,E501,W503,E704']
language: system
types: [python]
pass_filenames: true
always_run: false
- id: pyright
name: Type check with pyright
entry: uv
args: [run, pyright]
language: system
types: [python]
pass_filenames: true
always_run: false
- id: check-import-rules
name: Check import dependency rules
entry: uv
args: [run, python, scripts/check_import_rules.py]
language: system
types: [python]
pass_filenames: true
always_run: false
- id: check-tool-registration
name: Check Tool subclass registration
entry: uv
args: [run, python, scripts/check_tool_registration.py]
language: system
types: [python]
pass_filenames: true
always_run: false