|
| 1 | +default_stages: |
| 2 | + - pre-commit # Run locally |
| 3 | + - manual # Run in CI |
1 | 4 | repos:
|
2 | 5 | - repo: https://github.com/google/yapf
|
3 | 6 | rev: v0.32.0
|
@@ -33,30 +36,41 @@ repos:
|
33 | 36 | files: docs/.*
|
34 | 37 | - repo: local
|
35 | 38 | hooks:
|
| 39 | + - id: mypy-local |
| 40 | + name: Run mypy for local Python installation |
| 41 | + entry: tools/mypy.sh |
| 42 | + language: python |
| 43 | + types: [python] |
| 44 | + additional_dependencies: &mypy_deps [mypy==1.11.1, types-setuptools, types-PyYAML, types-requests] |
| 45 | + stages: [pre-commit] # Don't run in CI |
36 | 46 | - id: mypy-3.9 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
|
37 | 47 | name: Run mypy for Python 3.9
|
38 | 48 | entry: tools/mypy.sh 1 "3.9"
|
39 | 49 | language: python
|
40 | 50 | types: [python]
|
41 |
| - additional_dependencies: &mypy_deps [mypy==1.11.1, types-setuptools, types-PyYAML, types-requests] |
| 51 | + additional_dependencies: *mypy_deps |
| 52 | + stages: [manual] # Only run in CI |
42 | 53 | - id: mypy-3.10 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
|
43 | 54 | name: Run mypy for Python 3.10
|
44 | 55 | entry: tools/mypy.sh 1 "3.10"
|
45 | 56 | language: python
|
46 | 57 | types: [python]
|
47 | 58 | additional_dependencies: *mypy_deps
|
| 59 | + stages: [manual] # Only run in CI |
48 | 60 | - id: mypy-3.11 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
|
49 | 61 | name: Run mypy for Python 3.11
|
50 | 62 | entry: tools/mypy.sh 1 "3.11"
|
51 | 63 | language: python
|
52 | 64 | types: [python]
|
53 | 65 | additional_dependencies: *mypy_deps
|
| 66 | + stages: [manual] # Only run in CI |
54 | 67 | - id: mypy-3.12 # TODO: Use https://github.com/pre-commit/mirrors-mypy when mypy setup is less awkward
|
55 | 68 | name: Run mypy for Python 3.12
|
56 | 69 | entry: tools/mypy.sh 1 "3.12"
|
57 | 70 | language: python
|
58 | 71 | types: [python]
|
59 | 72 | additional_dependencies: *mypy_deps
|
| 73 | + stages: [manual] # Only run in CI |
60 | 74 | - id: shellcheck
|
61 | 75 | name: Lint shell scripts
|
62 | 76 | entry: tools/shellcheck.sh
|
|
0 commit comments