-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
90 lines (90 loc) · 2.26 KB
/
.pre-commit-config.yaml
File metadata and controls
90 lines (90 loc) · 2.26 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
---
repos:
# Ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.8
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
# 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: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-json
- id: check-toml
- id: no-commit-to-branch
args: [--branch=main]
# 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.", "src/simtools"]
# Github action
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
# https://pyproject-fmt.readthedocs.io/en/latest/
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.21.0"
hooks:
- id: pyproject-fmt
# codespell
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
args: [
"--skip=tests/resources/example_non_utf-8_file.lis",
"--ignore-words-list=als",
]
# markdownlint
# - repo: https://github.com/igorshubovych/markdownlint-cli
# rev: v0.48.0
# hooks:
# - id: markdownlint
# args: ["--disable", "MD041"]
# language_version: 22.11.0
# yamllint
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0
hooks:
- id: yamllint
args:
[
"--strict",
"-d",
'{extends: default, rules: {line-length: {max: 300}, indentation: {spaces: 2, indent-sequences: consistent}, truthy: {allowed-values: ["true", "false", "on", "off"]}}}'
]
# towncrier
- repo: https://github.com/twisted/towncrier
rev: 25.8.0
hooks:
- id: towncrier-update
files: $docs/changes/
args: ['--keep']
# shellcheck
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck