-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (31 loc) · 1.02 KB
/
Makefile
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
40
41
42
# Makefile
.PHONY: help test test-ci lint lint-check lint-format lint-fix lint-typing
help:
@echo "Available commands:"
@echo " make test - Run tests with coverage report"
@echo " make lint - Run lint check and format check"
@echo " make lint-check - Run lint check only (ruff)"
@echo " make lint-format - Check code formatting"
@echo " make lint-fix - Fix linting and formatting issues"
@echo " make lint-typing - Run type checking with mypy"
@echo " make lock - Update uv lock"
test:
uv run pytest tests
lint: lint-check lint-format
lint-check:
uv run ruff check .
lint-format:
uv run ruff format . --check
uv run pyproject-fmt pyproject.toml --check
lint-fix:
uv run ruff check . --fix
uv run ruff format .
uv run pyproject-fmt pyproject.toml
lint-typing:
uv run mypy daiv
lock:
uv lock
makemessages:
uv run django-admin makemessages --ignore=*/node_modules/* --ignore=.venv --no-location --no-wrap --all
compilemessages:
uv run django-admin compilemessages