APP = users-cleanup

VENV := ./venv

.DEFAULT_GOAL := help

## -
## help - this message
.PHONY: help
help: Makefile
	@echo "Application: $(APP)\n"
	@echo "Run command:\n  make <target>\n"
	@grep -E -h '^## .*' $(MAKEFILE_LIST) | sed -n 's/^##//p'  | column -t -s '-' |  sed -e 's/^/ /'

## install - Install the package (production dependencies only)
.PHONY:install
install:
	uv sync --no-dev

## install_dev - Install the package with development dependencies
.PHONY:install_dev
install_dev:
	uv sync

## fmt - Format code with ruff (alias)
.PHONY:fmt
fmt: format

## format - Format code with ruff
.PHONY:fromat
format:
	uv run ruff format .

## lint - Lint code with ruff
.PHONY:lint
lint:
	uv run ruff check .

## lint_fix - Lint and fix code with ruff
.PHONY:lint_fix
lint_fix:
	uv run ruff check --fix .

## type_check - Run type checking with mypy
.PHONY:type_check
type_check:
	uv run mypy src/ cleanup_users.py

## check - Run all checks (lint and type_check)
.PHONY:check
check: lint type_check

### clean - Clean build artifacts
#.PHONY:clean
#clean:
#	rm -rf build/
#	rm -rf dist/
#	rm -rf *.egg-info/
#	find . -type f -name "*.pyc" -delete
#	find . -type d -name "__pycache__" -delete
#
### build - Build the package
#.PHONY:build
#build:
#	uv run python -m build
