forked from adbc-drivers/validation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (50 loc) · 1.78 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
55 lines (50 loc) · 1.78 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
# Copyright (c) 2025 ADBC Drivers Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 8a948e557ca98afa9489998ad0b85515964df9c4 # v0.12.0
hooks:
- id: ruff-check
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: 63c8f8312b7559622c0d82815639671ae42132ac # v2.4.1
hooks:
- id: codespell
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
exclude: '\.bat$'
- id: trailing-whitespace
- repo: https://github.com/adbc-drivers/dev
rev: 19b7466f3177cf978db8c7a444f8710bd850e66c
hooks:
- id: rat
# grammars/txtcase.tmLanguage.json is the authoritative copy
- repo: local
hooks:
- id: check-txtcase-grammar-in-sync
name: Check txtcase grammar is synced
entry: cmp grammars/txtcase.tmLanguage.json editors/vscode/txtcase/txtcase.tmLanguage.json
language: system
files: ^(grammars|editors/vscode/txtcase)/txtcase\.tmLanguage\.json$
pass_filenames: false