-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
68 lines (62 loc) · 2.03 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
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# Install in your local dev environment
# > pip install --upgrade --user pre-commit
# Enable the hooks for this repo
# > pre-commit install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files # Check for large files
exclude: |
(?x)^(
chromecast-receiver/cc-receiver-logo\.png|
media/cc-receiver-logo\.svg|
testdata/.*|
raceinfo/testdata-dolphin/.*
)$
- id: check-merge-conflict # Check for merge conflict strings
- id: fix-byte-order-marker # Forbid utf-8 byte order marker
exclude: |
(?x)^(
testdata/.*|
raceinfo/testdata-dolphin/.*
)$
- id: end-of-file-fixer # Files end w/ newline
exclude: |
(?x)^(
testdata/.*|
raceinfo/testdata-dolphin/.*
)$
- id: trailing-whitespace # Trims trailing whitespace
args: [--markdown-linebreak-ext=md]
exclude: |
(?x)^(
startlist_test\.py|
testdata/.*|
raceinfo/colorado_scb_test\.py|
raceinfo/testdata-dolphin/.*
)$
- repo: https://github.com/adrienverge/yamllint
rev: "v1.35.1"
hooks:
- id: yamllint
args: ["--strict", "-c", ".github/yamllint-config.yml"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.2"
hooks:
# Note: lint/fix before format
- id: ruff # Run the linter.
# args: [ --fix ]
- id: ruff-format # Run the formatter.
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: "v0.42.0"
hooks:
- id: markdownlint
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: "38.142.7"
hooks:
- id: renovate-config-validator
language_version: lts # Use the LTS version of Node.js