-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (42 loc) · 1.67 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (42 loc) · 1.67 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
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-json
# TODO: investigate and fix or remove the excluded files. The first
# three carry real JSON issues (duplicate keys, malformed/empty
# content) that pre-commit-hooks v2.3.0 didn't catch; v5.0.0 does.
# The last is an intentionally malformed test fixture.
exclude: |
(?x)^(
.*vscode.*|
openmetadata-spec/src/main/resources/rdf/contexts/dataAsset\.jsonld|
ingestion/examples/sample_data/pipelines/tasks\.json|
openmetadata-service/src/main/resources/dataInsights/opensearch/indexSettingsTemplate\.json|
openmetadata-ui/src/main/resources/ui/playwright/test-data/odcs-examples/invalid-malformed\.json
)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.12
hooks:
- id: ruff-check
files: ^(ingestion|openmetadata-airflow-apis)/
args: ["--fix", "--config", "ingestion/pyproject.toml"]
- id: ruff-format
files: ^(ingestion|openmetadata-airflow-apis)/
args: ["--config", "ingestion/pyproject.toml"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
files: ^openmetadata-service/src/main/resources/json/schema/
- repo: local
hooks:
- id: google-style-java
name: Google Java Code Style for Java
description: Formats code in Google's Java codestyle with 120 line length.
entry: scripts/format-code.sh
language: script
files: \.java$
require_serial: true