-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (61 loc) · 1.56 KB
/
.pre-commit-config.yaml
File metadata and controls
66 lines (61 loc) · 1.56 KB
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
61
62
63
64
65
66
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-yaml
- id: check-json
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
- id: ruff
args:
- --fix
- --line-length=100
- --ignore=E402,F401,F841,E712,F403,F405
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
args: ["--line-length=100"]
- repo: https://github.com/jvllmr/pre-commit-prettier
rev: v3.8.1
hooks:
- id: prettier
files: "\\.(md|yaml|yml|json)$"
stages: [pre-commit]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: insert-license
name: Insert Apache-2.0 License Header (Python)
files: "\\.py$"
args:
- "--license-file"
- "LICENSE_HEADER.txt"
- id: insert-license
name: Insert Apache-2.0 License Header (C#)
files: "\\.cs$"
args:
- "--license-file"
- "LICENSE_HEADER.txt"
- "--comment-style"
- "//"
- id: insert-license
name: Insert Apache-2.0 License Header (MATLAB)
files: "\\.m$"
args:
- "--license-file"
- "LICENSE_HEADER.txt"
- "--comment-style"
- "%"
exclude: |
(?x)^(
biogui/ui/.*|
biogui/resources/.*\.py|
.*/__pycache__/.*|
uv\.lock|
bio-bridge/uv\.lock
)$