-
Notifications
You must be signed in to change notification settings - Fork 97
/
.pre-commit-config.yaml
62 lines (62 loc) · 1.57 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: .ci/gitlab/ci.yml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-yaml
- id: debug-statements
exclude: src/pymor/algorithms/rules.py
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: file-contents-sorter
files: ^\.mailmap$
- id: mixed-line-ending
- id: no-commit-to-branch
args:
- -b
- main
- -b
- pymor-paper
- -p
- \d+\.\d+\.x
- id: pretty-format-json
args:
- --autofix
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
hooks:
- id: ruff
args:
- --fix
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.12.1
hooks:
- id: markdownlint-cli2
args:
- --fix
- repo: https://github.com/pappasam/toml-sort.git
rev: v0.23.1
hooks:
- id: toml-sort-fix
- repo: https://github.com/lyz-code/yamlfix
rev: 1.16.0
hooks:
- id: yamlfix
types:
- text
files: \.yaml|\.yml|\.cff$
exclude: ^conda
ci:
autofix_prs: false
autoupdate_schedule: quarterly