|
1 | 1 | repos: |
2 | | -- hooks: |
3 | | - - additional_dependencies: |
4 | | - - aiohttp>=3.12.15 |
5 | | - - apmodel>=0.5.1 |
6 | | - - apsig>=0.6.0 |
7 | | - - charset-normalizer>=3.4.3 |
8 | | - - coverage>=7.10.7 |
9 | | - - fastapi>=0.116.1 |
10 | | - - httpcore[http2,socks]>=1.0.9 |
11 | | - - httpx>=0.28.1 |
12 | | - - pytest-cov>=7.0.0 |
13 | | - - pytest>=8.4.1 |
14 | | - - redis>=5.0.4 |
15 | | - - requests>=2.32.5 |
16 | | - - types-requests>=2.32.4.20250913 |
17 | | - - uvicorn>=0.35.0 |
18 | | - args: |
19 | | - - --fix |
20 | | - description: Run 'ruff' for extremely fast Python linting |
21 | | - entry: ruff check --force-exclude |
22 | | - id: ruff |
23 | | - language: python |
24 | | - minimum_pre_commit_version: 2.9.2 |
25 | | - name: ruff |
26 | | - require_serial: true |
27 | | - types_or: |
28 | | - - python |
29 | | - - pyi |
30 | | - - additional_dependencies: |
31 | | - - aiohttp>=3.12.15 |
32 | | - - apmodel>=0.5.1 |
33 | | - - apsig>=0.6.0 |
34 | | - - charset-normalizer>=3.4.3 |
35 | | - - coverage>=7.10.7 |
36 | | - - fastapi>=0.116.1 |
37 | | - - httpcore[http2,socks]>=1.0.9 |
38 | | - - httpx>=0.28.1 |
39 | | - - pytest-cov>=7.0.0 |
40 | | - - pytest>=8.4.1 |
41 | | - - redis>=5.0.4 |
42 | | - - requests>=2.32.5 |
43 | | - - types-requests>=2.32.4.20250913 |
44 | | - - uvicorn>=0.35.0 |
45 | | - args: [] |
46 | | - description: Run 'ruff format' for extremely fast Python formatting |
47 | | - entry: ruff format --force-exclude |
48 | | - id: ruff-format |
49 | | - language: python |
50 | | - minimum_pre_commit_version: 2.9.2 |
51 | | - name: ruff-format |
52 | | - require_serial: true |
53 | | - types_or: |
54 | | - - python |
55 | | - - pyi |
56 | | - repo: https://github.com/astral-sh/ruff-pre-commit |
57 | | - rev: v0.15.1 |
58 | | -- hooks: |
59 | | - - additional_dependencies: |
60 | | - - aiohttp>=3.12.15 |
61 | | - - apmodel>=0.5.1 |
62 | | - - apsig>=0.6.0 |
63 | | - - charset-normalizer>=3.4.3 |
64 | | - - coverage>=7.10.7 |
65 | | - - fastapi>=0.116.1 |
66 | | - - httpcore[http2,socks]>=1.0.9 |
67 | | - - httpx>=0.28.1 |
68 | | - - pytest-cov>=7.0.0 |
69 | | - - pytest>=8.4.1 |
70 | | - - redis>=5.0.4 |
71 | | - - requests>=2.32.5 |
72 | | - - types-requests>=2.32.4.20250913 |
73 | | - - uvicorn>=0.35.0 |
74 | | - id: pyrefly-check |
75 | | - name: Pyrefly (type checking) |
76 | | - pass_filenames: false |
77 | | - repo: https://github.com/facebook/pyrefly-pre-commit |
78 | | - rev: 0.52.0 |
| 2 | + - repo: local |
| 3 | + hooks: |
| 4 | + - id: ruff |
| 5 | + name: ruff |
| 6 | + entry: ruff check --force-exclude --fix |
| 7 | + language: system |
| 8 | + types_or: [python, pyi] |
| 9 | + require_serial: true |
| 10 | + |
| 11 | + - id: ruff-format |
| 12 | + name: ruff-format |
| 13 | + entry: ruff format --force-exclude |
| 14 | + language: system |
| 15 | + types_or: [python, pyi] |
| 16 | + require_serial: true |
| 17 | + |
| 18 | + - id: pyrefly-check |
| 19 | + name: Pyrefly (type checking) |
| 20 | + entry: pyrefly check |
| 21 | + language: system |
| 22 | + pass_filenames: false |
0 commit comments