-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
54 lines (53 loc) · 1.37 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
# SPDX-License-Identifier: MIT
# Copyright (c) 2023-2024 Vypercore. All Rights Reserved
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-yaml
args: [--unsafe]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
# sort imports
- id: ruff
args: [check, --select, I, --fix]
# format
- id: ruff-format
# lint
- id: ruff
args: [--fix]
- repo: https://github.com/Lucas-c/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
files: |
(?x)
^.*\.py$|
^.*\.ya?ml$
args:
- --license-filepath=license_header.txt
- "--comment-style=#"
- --use-current-year
- id: insert-license
files: |
(?x)
^.*\.css$|
^.*\.(j|t)sx?$
args:
- --license-filepath=license_header.txt
- "--comment-style=/*| *| */"
- --use-current-year
- id: insert-license
files: |
(?x)
^.*\.md$|
^.*\.xml$|
^.*\.html$
args:
- --license-filepath=license_header.txt
- "--comment-style=<!--| ~| -->"
- --use-current-year