-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 755 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 755 Bytes
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
.PHONY: run install-hatch overwrite-pre-commit install test lint json_schema
run:
export FORMAT_JSON_LOGS="1"
install-hatch:
# required to avoid hatch install errors if you're in a venv
pip3 install "click<8.3.0"
pip3 install hatch
# This edits your local pre-commit hook file to use Hatch when executing.
overwrite-pre-commit:
hatch run dev-env:pre-commit install
hatch run dev-env:sed -i -e "s/exec /exec hatch run dev-env:/g" .git/hooks/pre-commit
install: install-hatch overwrite-pre-commit
test:
export FORMAT_JSON_LOGS="1" && hatch -v run dev-env:pytest -n auto tests
lint:
hatch run dev-env:pre-commit run --color=always --all-files
json_schema:
hatch run dev-env:python dbt_semantic_interfaces/parsing/generate_json_schema_file.py