-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
56 lines (51 loc) · 1.64 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
50
51
52
53
54
55
56
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-merge-conflict
stages: [ pre-commit, pre-push ]
- id: check-ast
stages: [ pre-commit ]
- id: trailing-whitespace
stages: [ pre-commit ]
- id: end-of-file-fixer
stages: [ pre-commit ]
- repo: local
hooks:
- id: basedpyright
name: basedpyright
description: "Run 'basedpyright' for Python type checking"
entry: poetry run basedpyright --level ERROR
pass_filenames: false
language: system
types: [ python ]
stages: [ pre-commit ]
- id: pytest
name: pytest
description: "Run tests for testing code"
entry: poetry run pytest
language: system
pass_filenames: false
types: [ python ]
stages: [ pre-commit ]
- id: ruff
name: ruff-format
description: "Run 'ruff format' for extremely fast Python formatting"
entry: poetry run ruff format
language: system
types: [ python ]
stages: [ pre-commit ]
- id: ruff
name: ruff-isort
description: "Run 'ruff --select I --select F401 --fix' for extremely fast Python sorting imports"
entry: poetry run ruff check --select I --select F401 --fix
language: system
types: [ python ]
stages: [ pre-commit ]
- id: ruff
name: ruff-check
description: "Run 'ruff-format' for extremely fast Python linting"
entry: poetry run ruff check --fix
language: system
types: [ python ]
stages: [ pre-commit ]