-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
60 lines (46 loc) · 1.39 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
57
58
59
60
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
name: check syntax [.py]
- id: check-builtin-literals
name: check literals [.py]
- id: check-executables-have-shebangs
name: check scripts for shebangs
- id: check-shebang-scripts-are-executable
name: check scripts for executable bit
- id: check-json
name: check syntax [.json]
- id: pretty-format-json
name: format [.json]
args: [ "--autofix", "--no-sort-keys" ]
- id: check-toml
name: check syntax [.toml]
- id: check-yaml
name: check syntax [.yaml]
- id: trailing-whitespace
name: trim trailing whitespace
- id: end-of-file-fixer
name: fix end of file
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.317
hooks:
- id: pyright
entry: poetry run pyright
args: ['-p', 'pyproject.toml']
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.3.0
# hooks:
# - id: mypy
# entry: poetry run mypy
# args: [.]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.263
hooks:
- id: ruff
name: ruff fix
args: [ --fix, --exit-non-zero-on-fix ]
default_language_version:
python: python3.10
default_stages: [ "commit" ]