forked from SchedMD/slurm
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
43 lines (39 loc) · 1.04 KB
/
.pre-commit-config.yaml
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
---
exclude: configure|.+\.in|.+\.m4|LICENSE.OpenSSL
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- 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/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
args: [--config, tools/gitlint]