Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (73 loc) · 2.23 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
73 lines (73 loc) · 2.23 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
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier
additional_dependencies:
- prettier@3.9.10
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: |
(?x)^(
.*ro-crate-metadata.json$|
modules/(?!local/).*|
subworkflows/(?!local/).*|
.*\.snap$
)$
- id: end-of-file-fixer
exclude: |
(?x)^(
.*ro-crate-metadata.json$|
modules/(?!local/).*|
subworkflows/(?!local/).*|
.*\.snap$
)$
- id: check-added-large-files
args: [--maxkb=5000]
exclude: |
(?x)^(
.*ro-crate-metadata.json$|
.*\.snap$|
lib/nfcore_external_java_deps.jar$|
docs/.*\.(svg|pdf)$|
assets/.*$
)$
- id: check-merge-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.13
hooks:
- id: ruff-check
files: \.py$
exclude: |
(?x)^(
modules/(?!local/).*|
subworkflows/(?!local/).*
)$
args: [--fix, --exit-non-zero-on-fix, "--select", "I,E1,E4,E7,E9,F,UP,N"]
- id: ruff-format
files: \.py$
exclude: |
(?x)^(
modules/(?!local/).*|
subworkflows/(?!local/).*
)$
- repo: https://github.com/seqeralabs/nf-lint-pre-commit
rev: v0.3.0
hooks:
- id: nextflow-lint
files: '\.nf$|nextflow\.config$'
args: ["-output", "json"]
- repo: local
hooks:
- id: h5ad-gzip
name: Require gzip compression in H5AD write calls
entry: '(?m)^(?![^\n]*compression\s*=\s*["\x27]gzip["\x27])[^\n]*(?:write_h5ad\(|\.write\([^\n]*\.h5ad)'
language: pygrep
files: '^(modules/local/.*/templates/.*\.(py|R)|bin/.*\.qmd)$'
- id: block-pipeline-outdir
name: Prevent committing output from pipeline test runs to the pipeline code itself
entry: ./.hooks/block_pipeline_outdir.sh
language: script