-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pre-commit-config.yaml
35 lines (33 loc) · 1.13 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
repos:
- repo: https://github.com/psf/black
rev: 24.4.2 # Must be kept in sync with black version in python_dependencies/common/requirements.txt
hooks:
- id: black
stages: [commit]
files: ^(backend|tests|scripts)/
args: ["--config", "pyproject.toml"]
exclude_types: ["json"]
- id: black-jupyter
stages: [commit]
files: ^(backend|tests|scripts)/
args: ["--config", "pyproject.toml"]
exclude_types: ["json"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.4.4 # Must be kept in sync with ruff version in python_dependencies/common/requirements.txt
hooks:
- id: ruff
args: ["--config=pyproject.toml", "--fix"]
stages: [commit]
files: ^(backend|tests|scripts)/
exclude_types: ["json"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.2
hooks:
- id: prettier
args: [--write]
stages: [commit]
exclude_types: ["json"]
additional_dependencies: