-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
82 lines (81 loc) · 2.03 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
82 lines (81 loc) · 2.03 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
default_install_hook_types: [pre-commit, commit-msg]
default_stages: [pre-commit]
exclude: |
(?x)(
^.*.svg|
^assets/|
^src/ccbr_tools/templates/mkdocs-fnl/docs/custom-overrides/|
^tests/data/|
^pixi.lock
)
ci:
skip: [detect-absolute-paths]
repos:
- repo: local
hooks:
- id: detect-absolute-paths
name: detect absolute paths
entry: ccbr-hooks detect-absolute-paths
language: python
additional_dependencies: ["."]
types: [text]
exclude: |
(?x)^(
.gitignore|
.gitattributes|
.*.gitignore|
.*.diff|
.*action.yml|
examples/.*|
docs/.*|
tests/.*|
templates/|
src/ccbr_tools/pipeline/.*
)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
args: ["--maxkb=10240"]
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
# spell check
- repo: https://github.com/codespell-project/codespell
rev: v2.4.3
hooks:
- id: codespell
args:
[
-I,
.github/WORDLIST,
--skip,
"*human_mouse_homolog_lookup.txt,*.rpt",
]
# Quarto formatting
# - repo: https://github.com/jolars/panache
# rev: v2.13.0
# hooks:
# - id: panache-format
# - id: panache-lint
# Python formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.1
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
# general linting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
additional_dependencies:
- prettier@3.4.0
# enforce commit format
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []