-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
45 lines (43 loc) · 1.17 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
ci:
skip: [pyright]
autoupdate_schedule: quarterly
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
# File names
- id: check-case-conflict
# File formats
- id: pretty-format-json
- id: check-json
- id: check-toml
- id: check-yaml
# Executables
- id: check-executables-have-shebangs
exclude: dev-env
- id: check-shebang-scripts-are-executable
# Git shenanigans
- id: check-merge-conflict
- id: check-added-large-files
# Python issues
- id: check-ast
- id: debug-statements
# Whitespace
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.355
hooks:
- id: pyright
additional_dependencies:
- poetry==1.8.2
- ruamel-yaml==0.18.6
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4
hooks:
- id: ruff
args: [--fix, --unsafe-fixes]
- id: ruff-format