forked from CCBR/CCBR_NextflowTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (66 loc) · 1.7 KB
/
.pre-commit-config.yaml
File metadata and controls
66 lines (66 loc) · 1.7 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
default_install_hook_types: [pre-commit, commit-msg]
default_stages: [pre-commit]
exclude: |
(?x)(
^assets/|
^docs/.*.html|
^_extensions/|
^nextflow_schema.json|
^.*.svg |
^.github/CONTRIBUTING.md
)
repos:
- 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
# - repo: https://github.com/CCBR/Tools
# rev: v0.5.1
# hooks:
# - id: detect-absolute-paths
# exclude: |
# (?x)^(
# .gitignore|
# .*.gitignore|
# docs/_extensions/.*
# )$
# spell check
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
args: ["-I", ".github/WORDLIST.txt"]
# Python formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.12
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
# R formatting
- repo: https://github.com/posit-dev/air-pre-commit
rev: 0.9.0
hooks:
- id: air-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: []
- repo: https://github.com/citation-file-format/cffconvert
rev: 054bda51dbe278b3e86f27c890e3f3ac877d616c
hooks:
- id: validate-cff