-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
44 lines (41 loc) · 1.26 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
ci:
autofix_commit_msg: |
style(pre-commit.ci): auto fixes from pre-commit hooks
for more information, see https://pre-commit.ci
autoupdate_branch: 'dev'
autoupdate_commit_msg: 'ci(deps): pre-commit autoupdate'
autoupdate_schedule: weekly
skip:
- "ruff"
default_language_version:
python: python3.11
default_stages:
- "pre-commit"
default_install_hook_types:
- "pre-commit"
- "commit-msg"
- "post-checkout"
- "post-merge"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-ast
- id: end-of-file-fixer
exclude: '(^.+\.(md|txt|css)$)|(^LICENSE$)|(^(.github|\.vscode|addon/doc|addon/locale)/)'
- id: mixed-line-ending
exclude: '(^.+\.(md|txt|css)$)|(^LICENSE$)|(^(.github|\.vscode|addon/doc|addon/locale)/)'
args:
- "--fix=lf"
- id: check-toml
- id: trailing-whitespace
exclude: '(^.+\.(md|txt|css)$)|(^LICENSE$)|(^(.github|\.vscode|addon/doc|addon/locale)/)'
- id: check-case-conflict
- id: check-yaml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.7"
hooks:
- id: ruff-format
- id: ruff