Files
2025-05-29 21:50:48 +03:00

64 lines
1.4 KiB
Makefile
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

######################################
# Just Settings
######################################
set unstable := true
######################################
# Local Variables
######################################
package := "notletters"
######################################
# Defaults
######################################
[private]
default: help
[doc("Show this help menu")]
@help:
just --list --unsorted
######################################
# Develpomnet
######################################
alias cln := clean
alias bs := bootstrap
[doc("Removes caches and temporary files")]
[group("Develpomnet")]
clean:
rm --force --recursive --verbose .egg*
rm --force --recursive --verbose .cache/
rm --force --recursive --verbose **/__pycache__/
[doc("Bootstrap project")]
[group("Develpomnet")]
bootstrap:
uv sync --all-extras --all-groups
######################################
# Сode Quality
######################################
alias lnt := lint
alias fmt := format
[doc("Running code quality checks")]
[group("Сode Quality")]
@lint:
uv run mypy {{ package }}
uv run ruff check {{ package }}
uv run ruff format --check {{ package }}
just --check --fmt
[doc("Formatting and fixing code")]
[group("Сode Quality")]
format:
uv run ruff format {{ package }}
uv run ruff check --fix --unsafe-fixes {{ package }}
just --fmt