-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
49 lines (46 loc) · 1.2 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
48
49
repos:
# Pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
# list of supported hooks: https://pre-commit.com/hooks.html
- id: trailing-whitespace
# don't remove line-breaks in markdown
args: [--markdown-linebreak-ext=md]
- id: debug-statements
- id: detect-private-key
- id: check-yaml
- id: end-of-file-fixer
# - id: check-added-large-files
# YAML formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.2
hooks:
- id: prettier
types: [yaml]
# codespell
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
args: ["--ignore-words-list", "hist, parms"]
- repo: local
hooks:
# linter
- id: ruff
name: ruff
entry: ruff --fix .
language: system
pass_filenames: false
# formatter
- id: ruff-format
name: ruff format
entry: ruff format .
language: system
pass_filenames: false
# typecheck
- id: pyright
name: pyright
entry: pyright .
language: system
pass_filenames: false