-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 840 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (26 loc) · 840 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
.DEFAULT_GOAL := check
.PHONY: install sync run test lint format typecheck check hooks lock
install: ## Create the venv, sync deps, and install pre-commit hooks
uv sync
uv run pre-commit install
sync: ## Sync the environment with uv.lock
uv sync
run: ## Run the application entry point
uv run python_sample_repository
test: ## Run the test suite
uv run pytest
lint: ## Lint with ruff
uv run ruff check .
format: ## Format with ruff
uv run ruff format .
typecheck: ## Type-check with ty
uv run ty check .
check: ## Lint, check formatting, type-check, and run tests
uv run ruff check .
uv run ruff format --check .
uv run ty check .
uv run pytest
hooks: ## Run all pre-commit hooks against every file
uv run pre-commit run --all-files
lock: ## Re-resolve dependencies to the latest allowed versions
uv lock --upgrade