-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
100 lines (91 loc) · 2.68 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
# see https://pre-commit.com
default_language_version:
python: python3.13.0
exclude: |
(?x)^(
.+/package.*.json
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: ['--maxkb=512']
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=lf']
- id: trailing-whitespace
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.17.1
hooks:
- id: cspell
# see: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.44.0
hooks:
- id: markdownlint
- repo: local
hooks:
- id: textlint
name: textlint
language: node
types: [file]
files: \.(txt|md|mdown|markdown)$
entry: textlint
require_serial: false
additional_dependencies:
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
name: Format GitHub Actions workflow files
types:
- yaml
- json
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 39.158.1
hooks:
- id: renovate-config-validator
files: renovate\.json
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
hooks:
# Run the linter.
- id: ruff
name: ruff
description: "Run 'ruff' for extremely fast Python linting"
entry: ruff check --force-exclude
language: python
language_version: 3.13.0
types_or: [python, pyi]
# --fix: enable lint fixes
args: [--fix]
require_serial: true
additional_dependencies: []
minimum_pre_commit_version: "2.9.2"
# Run the formatter.
- id: ruff-format
name: ruff-format
description: "Run 'ruff' for extremely fast Python formatting"
entry: ruff format --force-exclude
language: python
language_version: 3.13.0
types_or: [python, pyi]
args: []
require_serial: true
additional_dependencies: []
minimum_pre_commit_version: "2.9.2"