-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (28 loc) · 899 Bytes
/
Copy pathMakefile
File metadata and controls
42 lines (28 loc) · 899 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
30
31
32
33
34
35
36
37
38
39
40
41
42
.PHONY: install install-all install-mysql install-mssql install-mongo lint format type test test-unit test-integration cov build clean
install:
uv sync --extra dev
install-all:
uv sync --extra dev --extra mysql --extra mssql --extra mongo
install-mysql:
uv sync --extra dev --extra mysql
install-mssql:
uv sync --extra dev --extra mssql
install-mongo:
uv sync --extra dev --extra mongo
lint:
uv run ruff check .
format:
uv run ruff format .
type:
uv run mypy rapyd_db
test-unit:
uv run pytest tests/unit --cov=rapyd_db --cov-branch --cov-report=term-missing
test-integration:
RUN_INTEGRATION_TESTS=1 uv run pytest tests/integration
test: test-unit
cov:
uv run pytest tests/unit --cov=rapyd_db --cov-branch --cov-report=term-missing --cov-report=html
build:
uv run python -m build
clean:
rm -rf build dist *.egg-info .coverage htmlcov .pytest_cache .mypy_cache .ruff_cache