-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (40 loc) · 1.1 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (40 loc) · 1.1 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5
# Handle undesirable unicode characters
- repo: https://github.com/sirosen/texthooks
rev: "0.7.1"
hooks:
- id: alphabetize-codeowners
- id: fix-smartquotes
- id: fix-spaces
- id: fix-ligatures
- id: forbid-bidi-controls
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.1
hooks:
- id: ruff-check
name: ruff-check (local)
stages: [pre-commit, pre-push]
- id: ruff-check
name: ruff-check (ci)
stages: [manual]
args: [--output-format=github]
- id: ruff-format
# type check
- repo: https://github.com/DetachHead/basedpyright-prek-mirror
rev: 1.33.0
hooks:
- id: basedpyright