mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-24 17:59:52 +00:00
Update py format recipes to include more paths (#3043)
This commit is contained in:
parent
fe5618c8f1
commit
01a975e414
8
Makefile
8
Makefile
@ -37,13 +37,13 @@ lint: ## Run pylint on the Python sources to analyze the codebase
|
||||
|
||||
.PHONY: py_format
|
||||
py_format: ## Run black and isort to format the Python codebase
|
||||
isort $(PY_SOURCE) --skip $(PY_SOURCE)/metadata/generated --profile black --multi-line 3
|
||||
black $(PY_SOURCE) --exclude $(PY_SOURCE)/metadata/generated
|
||||
isort $(PY_SOURCE) --skip $(PY_SOURCE)/metadata/generated --skip ingestion/build --profile black --multi-line 3
|
||||
black $(PY_SOURCE) --extend-exclude $(PY_SOURCE)/metadata/generated
|
||||
|
||||
.PHONY: py_format_check
|
||||
py_format_check: ## Check if Python sources are correctly formatted
|
||||
black --check --diff $(PY_SOURCE) --exclude $(PY_SOURCE)/metadata/generated
|
||||
isort --check-only $(PY_SOURCE) --skip $(PY_SOURCE)/metadata/generated --profile black --multi-line 3
|
||||
black --check --diff ingestion/ --extend-exclude $(PY_SOURCE)/metadata/generated
|
||||
isort --check-only ingestion/ --skip $(PY_SOURCE)/metadata/generated --skip ingestion/build --profile black --multi-line 3
|
||||
|
||||
## Ingestion models generation
|
||||
.PHONY: generate
|
||||
|
Loading…
x
Reference in New Issue
Block a user