-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 745 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (22 loc) · 745 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
.PHONY: install
install: ## Install git hooks for local development
uv run pre-commit install
.PHONY: format
format: ## Format the code
uv run ruff format
uv run ruff check --fix --fix-only
.PHONY: lint
lint: ## Lint the code
uv run ruff format --check
uv run ruff check
.PHONY: typecheck-pyright
typecheck-pyright:
@# PYRIGHT_PYTHON_IGNORE_WARNINGS avoids the overhead of making a request to github on every invocation
PYRIGHT_PYTHON_IGNORE_WARNINGS=1 uv run pyright
.PHONY: typecheck
typecheck: typecheck-pyright ## Run static type checking
.PHONY: test
test: ## Run tests and collect coverage data
COLUMNS=150 uv run coverage run -m pytest -n auto --dist=loadgroup --durations=20
uv run coverage combine
uv run coverage report