forked from SchedMD/slurm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
91 lines (84 loc) · 2.17 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
91 lines (84 loc) · 2.17 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
83
84
85
86
87
88
89
90
91
---
exclude: configure|.+\.in|.+\.m4|LICENSE.OpenSSL
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--profile, black, --project, atf, --skip-gitignore]
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
args: [--config, tools/flake8]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
exclude_types: [gif,tar,png,pdf,svg]
exclude: auxdir|expect/globals|jquery\.min\.js
args: [--config, tools/codespellrc]
- id: codespell
alias: codespell-apply
exclude_types: [gif,tar,png,pdf,svg]
exclude: auxdir|expect/globals|jquery\.min\.js
args: [--config, tools/codespellrc, -w]
stages: [manual]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
args: [--config, tools/gitlint, --msg-filename]
- id: gitlint-ci
alias: gitlint-ci-draft
args: [--config, tools/gitlint]
# Enforce no-fixup/amend commits
- id: gitlint-ci
alias: gitlint-ci-nodraft
args: [--config, tools/gitlint, --contrib, CC2]
# Enforce internal email addresses
- id: gitlint-ci
alias: gitlint-ci-email
args: [--config, tools/gitlint]
- repo: https://github.com/pecigonzalo/pre-commit-shfmt
rev: v2.2.0
hooks:
- id: shell-fmt
files: |
(?x)(
^contribs/slurm_completion_help/|
^testsuite/
)
args:
- --diff
- --write
- --simplify
- --list
- repo: local
hooks:
- id: shellcheck
name: shellcheck
description: Test shell scripts with shellcheck
entry: shellcheck
language: python
types: [shell]
require_serial: true # shellcheck can detect sourcing this way
files: |
(?x)(
^contribs/slurm_completion_help/|
^testsuite/
)
args:
- --severity=warning