-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
67 lines (67 loc) · 1.86 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
63
64
65
66
67
repos:
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
args: ["--line-length=100"]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff
rev: v0.4.9
hooks:
- id: ruff
args: ["--fix"]
# pylint
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
exclude: ^tests/|^simtools/applications/db_development_tools/
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
]
# https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
args: ['--maxkb=500']
# https://github.com/HunterMcGushion/docstr_coverage
- repo: https://github.com/HunterMcGushion/docstr_coverage
rev: v2.3.2 # most recent docstr-coverage release or commit sha
hooks:
- id: docstr-coverage
args: ["--verbose", "2", "--fail-under", "70.", "simtools"]
# Github action
- repo: https://github.com/rhysd/actionlint
rev: v1.7.1
hooks:
- id: actionlint
# https://pyproject-fmt.readthedocs.io/en/latest/
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.1.3"
hooks:
- id: pyproject-fmt
# codespell
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
# markdownlint
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
hooks:
- id: markdownlint
args: ["--disable", "MD041"]
# yamllint
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
args: ["--strict", "-d", '{rules: {line-length: {max: 250}}}']