-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (20 loc) · 709 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (20 loc) · 709 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
26
27
28
29
.PHONY: clean install-dev lint type-check check-code format
DIRS_WITH_CODE = src
clean:
rm -rf .venv .mypy_cache .pytest_cache .ruff_cache __pycache__
install-dev:
python3 -m pip install --upgrade pip poetry
poetry install
poetry run pre-commit install
lint:
poetry run ruff check $(DIRS_WITH_CODE)
type-check:
poetry run mypy $(DIRS_WITH_CODE)
check-code: lint type-check
format:
poetry run ruff check --fix $(DIRS_WITH_CODE)
poetry run ruff format $(DIRS_WITH_CODE)
test:
poetry run pytest --with-integration --vcr-record=none
pydantic-model:
datamodel-codegen --input .actor/input_schema.json --output $(DIRS_WITH_CODE)/input_model.py --input-file-type jsonschema --field-constraints