-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
67 lines (67 loc) · 1.83 KB
/
.pre-commit-config.yaml
File metadata and controls
67 lines (67 loc) · 1.83 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
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier
additional_dependencies:
- prettier@3.6.2
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: |
(?x)^(
.*ro-crate-metadata.json$|
modules/nf-core/.*|
modules/gallvp/.*|
subworkflows/nf-core/.*|
subworkflows/gallvp/.*|
.*\.snap$
)$
- id: end-of-file-fixer
exclude: |
(?x)^(
.*ro-crate-metadata.json$|
modules/nf-core/.*|
modules/gallvp/.*|
subworkflows/nf-core/.*|
subworkflows/gallvp/.*|
.*\.snap$
)$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.17.1"
hooks:
- id: mypy
files: bin/.*\.py
additional_dependencies:
- types-tabulate
- types-PyYAML
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.13
hooks:
- id: ruff
files: bin/.*\.py
args:
[
--fix,
--exit-non-zero-on-fix,
--config,
"lint.select=['I','E','F','UP','N','Q','RET','SLF','C4','YTT','T10','RSE','TID','INT','ARG','FLY','PERF','FURB','RUF','W']",
--config,
"line-length=160",
--config,
"target-version='py311'",
]
- id: ruff-format
files: bin/.*\.py
- repo: local
hooks:
- id: version_checks
name: Version checks
language: system
entry: >
.github/version_checks.sh
always_run: true
fail_fast: true
pass_filenames: false