2023-09-27 19:59:24 +03:00
|
|
|
default_language_version:
|
|
|
|
|
python: python3
|
2022-01-07 03:53:21 +01:00
|
|
|
repos:
|
2024-04-18 15:32:38 +02:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
|
rev: v2.3.0
|
2022-01-07 03:53:21 +01:00
|
|
|
hooks:
|
2024-04-18 15:32:38 +02:00
|
|
|
- id: check-json
|
|
|
|
|
exclude: vscode
|
|
|
|
|
- repo: https://github.com/hadialqattan/pycln
|
|
|
|
|
rev: v2.4.0
|
|
|
|
|
hooks:
|
|
|
|
|
- id: pycln
|
|
|
|
|
files: ^(ingestion|openmetadata-airflow-apis)/
|
|
|
|
|
args: [ "--config", "ingestion/pyproject.toml" ]
|
2022-01-07 03:53:21 +01:00
|
|
|
- repo: https://github.com/timothycrosley/isort
|
2023-02-13 11:13:24 +09:00
|
|
|
rev: 5.12.0
|
2022-01-07 03:53:21 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: isort
|
2024-04-18 15:32:38 +02:00
|
|
|
files: ^(ingestion|openmetadata-airflow-apis)/
|
|
|
|
|
args: [ "--settings-file", "ingestion/pyproject.toml" ]
|
|
|
|
|
- repo: https://github.com/ambv/black
|
|
|
|
|
rev: 22.3.0
|
2022-03-14 06:59:15 +01:00
|
|
|
hooks:
|
2024-04-18 15:32:38 +02:00
|
|
|
- id: black
|
|
|
|
|
files: ^(ingestion|openmetadata-airflow-apis)/
|
|
|
|
|
args: [ "--config", "ingestion/pyproject.toml" ]
|
2022-02-01 01:29:56 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
|
|
|
rev: v2.5.1
|
|
|
|
|
hooks:
|
|
|
|
|
- id: prettier
|
2022-09-14 23:14:02 -07:00
|
|
|
files: ^openmetadata-service/src/main/resources/json/schema/
|
2022-01-07 03:53:21 +01:00
|
|
|
- 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
|
|
|
|
|
- repo: local
|
|
|
|
|
hooks:
|
|
|
|
|
- id: lint-staged
|
|
|
|
|
name: lint-staged
|
|
|
|
|
description: Formats TS and JS code.
|
|
|
|
|
entry: scripts/lint-staged.sh
|
|
|
|
|
language: script
|
|
|
|
|
files: \.(js|jsx|ts|tsx)$
|
|
|
|
|
require_serial: true
|