-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (25 loc) · 666 Bytes
/
Makefile
File metadata and controls
39 lines (25 loc) · 666 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
PYTHON ?= 3.14
.PHONY: sync test lint typecheck check build precommit-install precommit-run release-check docker-build docker-run test-build
sync:
uv sync --python $(PYTHON) --group dev
test:
uv run pytest
lint:
uv run ruff check .
typecheck:
uv run mypy
check: lint typecheck test
build:
uv build
precommit-install:
uv run pre-commit install
uv run pre-commit install --hook-type pre-push
precommit-run:
uv run pre-commit run --all-files
release-check:
uv run semantic-release -c .releaserc.toml version --print
docker-build:
docker build -t python-datemath .
docker-run:
docker run --rm python-datemath
test-build: docker-build docker-run