mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-29 16:39:04 +00:00
* Update configs * Update configs * Update precommit black exclude * Update precommit exclude isort * Test precommit * Revert test commit * isort & black * Test precommit * Revert test precommit * Update docs * Apply recipe update * Fix black_check recipe * Grammar
32 lines
779 B
Makefile
32 lines
779 B
Makefile
.PHONY: env38
|
|
PY_SOURCE ?= ingestion/src
|
|
|
|
env38:
|
|
# virtualenv -p python3.8 env38
|
|
python3.8 -m venv env38
|
|
clean_env37:
|
|
rm -rf env38
|
|
|
|
install:
|
|
pip install ingestion/
|
|
|
|
install_test:
|
|
pip install -r ingestion/requirements-test.txt
|
|
|
|
precommit_install:
|
|
@echo "Installing pre-commit hooks"
|
|
@echo "Make sure to first run `make install_test`"
|
|
pre-commit install --config ingestion/.pre-commit-config.yaml
|
|
|
|
isort:
|
|
isort $(PY_SOURCE) --skip $(PY_SOURCE)/metadata/generated --profile black --multi-line 3
|
|
|
|
lint:
|
|
find $(PY_SOURCE) -path $(PY_SOURCE)/metadata/generated -prune -false -o -type f -name "*.py" | xargs pylint
|
|
|
|
black:
|
|
black $(PY_SOURCE) --exclude $(PY_SOURCE)/metadata/generated
|
|
|
|
black_check:
|
|
black --check --diff $(PY_SOURCE) --exclude $(PY_SOURCE)/metadata/generated
|