-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
40 lines (40 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
38
39
40
# unless otherwise specified, hooks run on push only
default_stages: [push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
stages: [push]
- id: end-of-file-fixer
stages: [push]
- repo: https://github.com/crate-ci/typos
rev: v1.15.5
hooks:
- id: typos
stages: [push]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.1
hooks:
- id: ruff
- repo: local
hooks:
- id: pyright
name: pyright
entry: node_modules/.bin/pyright
# run on all files to catch type errors that affect unchanged files
pass_filenames: false
language: system
types: [python]
- id: test
name: test
entry: make test
# run on all files
pass_filenames: false
language: system
types: [python]