aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: f68e6341e8f3b6e9c064e49b150076475a60767c (plain) (blame)
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
all: format lint mypy test

fix: format-fix lint-fix

UV = VIRTUAL_ENV=.venv uv

format:
	@$(UV) run ruff format --check

format-fix:
	@$(UV) run ruff format

lint:
	@$(UV) run ruff check

lint-fix:
	@$(UV) run ruff check --fix

mypy:
	@$(UV) run mypy ./src ./tests

test:
	$(UV) run pytest

build:
	@$(UV) build

publish:
	@$(UV) run -m twine upload dist/*

.PHONY: all fix format format-fix lint lint-fix mypy build