-
Notifications
You must be signed in to change notification settings - Fork 17
/
.pre-commit-config.yaml
37 lines (37 loc) · 1.04 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/ambv/black
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
hooks:
- id: ruff
args: [--fix]
- repo: local
hooks:
- id: pyright
name: pyright
entry: pyright
language: system
always_run: true
pass_filenames: true
files: ^.*\.py$
- id: generate passthrough modules
name: generate passthrough modules
entry: python scripts/generate_version_submodule_imports.py generate
language: system
always_run: true
pass_filenames: false
- id: generate json schemas
name: generate json schemas
entry: python scripts/generate_json_schemas.py
language: system
always_run: true
pass_filenames: false
- id: generate spec md docs
name: generate spec md docs
entry: python scripts/generate_spec_documentation.py
language: system
always_run: true
pass_filenames: false