-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 715 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 715 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
export UID:=$(shell id -u)
export GID:=$(shell id -g)
export PYTHON_TAGS = 3.9 3.10 3.11 3.12 3.13 3.14
setup:
@uv run pre-commit install
test:
@touch .env
@uv run --env-file .env pytest -rs
coverage:
@uv run pytest -rs --cov=amazon_paapi --cov=amazon_creatorsapi --cov-report=html --cov-report=term --cov-report=xml
test-all-python-tags:
@touch .env
@for tag in $$PYTHON_TAGS; do \
uv run --env-file .env --python "$$tag" pytest -rs --no-cov; \
done
lint:
@uv run ruff check --fix .
format:
@uv run ruff format .
mypy:
@uv run mypy .
pre-commit:
@uv run pre-commit run -a
docs:
@cd docs && uv run make html
.PHONY: setup test coverage test-all-python-tags lint format mypy pre-commit docs