Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
127 lines (127 loc) · 3.69 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
127 lines (127 loc) · 3.69 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-json
- id: check-toml
- id: check-vcs-permalinks
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix, lf]
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
hooks:
- id: pyupgrade
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.286"
hooks:
- id: ruff
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.32.1
hooks:
- id: djlint-jinja
- repo: local
hooks:
- id: check-dependabot
name: check implementations for dependabot registration
language: python
pass_filenames: false
entry: .pre-commit-hooks/check-dependabot
additional_dependencies: [pyyaml]
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- name: black (python implementations & bowtie internals)
id: black
args: ["--line-length", "79"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.2"
hooks:
- name: prettier (javascript implementations & bowtie internals)
exclude: frontend/pnpm-lock.yaml
id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.48.0
hooks:
- name: eslint
id: eslint
files: ^frontend/src/.*\.jsx?$
types: [file]
additional_dependencies:
- eslint@8.43.0
- eslint-plugin-react@7.32.2
- eslint-plugin-react-hooks@4.6.0
- repo: https://github.com/doublify/pre-commit-rust
rev: "v1.0"
hooks:
- name: cargo fmt rust-jsonschema
id: fmt
args:
[
"--manifest-path",
"implementations/rust-jsonschema/Cargo.toml",
"--",
]
- name: cargo fmt rust-boon
id: fmt
args: ["--manifest-path", "implementations/rust-boon/Cargo.toml", "--"]
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.18
hooks:
- name: go fmt (golang implementations)
id: go-fmt
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: "3.0.0"
hooks:
- name: rubocop (ruby implementations)
id: rubocop
args: ["--auto-correct"]
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v0.18.1
hooks:
- name: stylua (lua implementations)
id: stylua
exclude: .*/json.lua
args: ["--config-path", "implementations/lua-jsonschema/stylua.toml"]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
hooks:
- name: clang-format (c/c++/c#/java implementations)
id: clang-format
types_or: [c++, c, c#, java, objective-c]
- repo: https://github.com/dustinsand/pre-commit-jvm
rev: v0.9.0
hooks:
- name: ktlint (kotlin implementations)
id: ktlint
args:
[
"--format",
"implementations/kotlin-kmp-json-schema-validator/**/*.kt",
"implementations/kotlin-kmp-json-schema-validator/*.kts",
]
- name: detekt (kotlin implementations)
id: detekt
args:
[
"--build-upon-default-config",
"--input",
"implementations/kotlin-kmp-json-schema-validator",
]
- name: pmd (java implementations)
id: pmd
args:
[
"-R",
"implementations/.java-implementations-pmd-ruleset.xml",
"-d",
"implementations",
]