-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
22 lines (18 loc) · 642 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
format:
poetry run black --target-version py39 -l 88 .
poetry run ruff --select I --fix .
PYTHON_FILES=.
lint: PYTHON_FILES=.
lint_diff: PYTHON_FILES=$(shell git diff --name-only --diff-filter=d main | grep -E '\.py$$')
lint lint_diff:
poetry run black --target-version py39 -l 88 $(PYTHON_FILES) --check
poetry run ruff .
poetry run mypy $(PYTHON_FILES)
test:
poetry run pytest -vv -n 20 --cov=semantic_router --cov-report=term-missing --cov-report=xml
test_functional:
poetry run pytest -vv -n 20 tests/functional
test_unit:
poetry run pytest -vv -n 20 tests/unit
test_integration:
poetry run pytest -vv -n 20 tests/integration