forked from open-edge-platform/geti
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (33 loc) · 933 Bytes
/
.pre-commit-config.yaml
File metadata and controls
37 lines (33 loc) · 933 Bytes
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
default_language_version:
python: python3.10
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.2
hooks:
- id: ruff
name: Ruff linter on all Python files
args: ["--fix"]
- id: ruff-format
name: Ruff formatter on all Python files
- repo: local
hooks:
- id: uv-lock-check
name: uv lock check
entry: dev_tools/pre_commit_scripts/check_uv_lock.sh
language: script
always_run: true
pass_filenames: false
- repo: local
hooks:
- id: mypy
name: mypy
entry: python
types: ["python"]
args: ["dev_tools/pre_commit_scripts/find_py_projects_and_run_make_target.py", "mypy"]
language: python
- repo: https://github.com/APIDevTools/swagger-cli
rev: v4.0.4
hooks:
- id: swagger-validation
args: ["validate", "docs/rest_api/openapi.yaml"]
files: "docs\/rest_api\/.*(json|yaml|yml)|interactive_ai\/services\/api\/schemas\/.*(json|yaml|yml)"