-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
44 lines (44 loc) · 1.12 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
args: [ '--maxkb=10000' ]
- id: check-json
- id: check-toml
- id: check-yaml
- id: forbid-new-submodules
- id: mixed-line-ending
args: [ '--fix=lf' ]
- id: trailing-whitespace
- id: check-docstring-first
- id: check-merge-conflict
- id: detect-private-key
# - repo: https://github.com/asottile/pyupgrade
# rev: v3.4.0
# hooks:
# - id: pyupgrade
# entry: pyupgrade --py38-plus
- repo: local
hooks:
- id: ruff
name: ruff
entry: ruff check --fix .
language: system
pass_filenames: false
- id: format
name: format
entry: ruff format
language: system
pass_filenames: false
- id: format-docs
name: format docs
entry: blacken-docs
language: system
pass_filenames: true
files: "\\.(md)$"
- id: pyright
name: pyright
entry: pyright .
language: system
pass_filenames: false