-
Notifications
You must be signed in to change notification settings - Fork 429
/
Copy path.pre-commit-config.yaml
47 lines (43 loc) · 1.19 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
38
39
40
41
42
43
44
45
46
47
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.10
hooks:
# Run the linter.
- id: ruff
args: [--config, api/pyproject.toml, --config, "src = ['api']", --fix]
# Run the formatter.
- id: ruff-format
args: [--config, api/pyproject.toml, --config, "src = ['api']"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-json
- id: check-toml
- repo: local
hooks:
- id: prettier
name: prettier
language: node
entry: prettier
additional_dependencies:
args:
- --check
types: [javascript, jsx, ts, tsx, markdown, mdx, html, css, json, yaml]
- id: python-typecheck
name: python-typecheck
language: system
entry: poetry -C api run mypy .
require_serial: true
pass_filenames: false
types: [python]
- repo: https://github.com/python-poetry/poetry
rev: 2.1.1
hooks:
- id: poetry-check
args: ["-C", "api"]
ci:
skip: [python-typecheck]
autoupdate_commit_msg: "ci: pre-commit autoupdate"