-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.pre-commit-config.yaml
70 lines (64 loc) · 1.81 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
ci:
skip:
- markdown-link-check
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
args: ["--maxkb=128"]
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.10.0 # sync:black:tests/functional/poetry.lock
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types:
- markdown
- repo: https://github.com/crashappsec/pre-commit-sync
rev: 0.1.0.a3
hooks:
- id: pre-commit-sync
# - repo: local
# hooks:
# - id: licenseheaders
# name: licenseheaders
# language: python
# additional_dependencies:
# - https://github.com/johann-petrak/licenseheaders/archive/8e2d6f944aea639d62c8d26cd99dab4003c3904d.zip
# entry: ./.github/check_license.sh
# files: \.(nim|c4m|c42spec|bash|py)$
# args:
# - --tmpl=.github/copyright.tmpl
# # - --current-year
# # - --years=2022,2023
# - --projname=Chalk
# - --projurl=https://crashoverride.com/docs/chalk
# - --additional-extensions
# - script=.nim,.c4m,.c42spec,.bash
# - robot=.py # native python each run adds another newline
# - --files
# - --
# # selfsigned is not our copyright
# # data has test data for python encoding so we leave it alone
# exclude: |
# (?x)(
# selfsigned.py|
# defaultconfig.c4m|
# configs/.*.c4m|
# tests/.*.c4m|
# data/.*
# )$
- repo: https://github.com/tcort/markdown-link-check
rev: v3.13.6
hooks:
- id: markdown-link-check
args:
- -q
- -c
- .github/.md-link-check.json