-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.pre-commit-config.yaml
54 lines (52 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
# Pre-Commit CI Config
ci:
autoupdate_schedule: monthly
skip: [pretty-format-java, pretty-format-kotlin]
# We should never format the copied Calcite files, in order to avoid massive diffs when Calcite is updated.
# See https://bodo.atlassian.net/wiki/spaces/B/pages/1415970823/Bodo+s+Calcite+Fork#Managing-the-Fork
exclude: ^BodoSQL/calcite_sql/bodosql-calcite-application/src/main/java/org/apache/calcite/|^BodoSQL/calcite_sql/bodosql-calcite-application/src/test/resources
repos:
# Basics
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: debug-statements
exclude: bodo-platform-image/ansible/roles/ipython/files/load_bodo_platform_extensions_magics.py
- id: detect-aws-credentials
args: [--allow-missing-credentials]
# Python
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- id: ruff-format
# Cython
- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.16.6
hooks:
- id: cython-lint
args: [--no-pycodestyle] # Because it doesn't autofix, it would be too annoying
- id: double-quote-cython-strings
# Java and Kotlin
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-java
args: ["--autofix", "--google-java-formatter-version", "1.24.0"]
- id: pretty-format-kotlin
args: ["--autofix"]
# C++
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.7
hooks:
- id: clang-format
types_or: [c++]
exclude: |
(?x)^(bodo/libs/vendored/.*)$
# GitHub Actions
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint