mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
update
This commit is contained in:
@@ -1,36 +1,57 @@
|
||||
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
|
||||
set shell := ["bash", "-c"]
|
||||
|
||||
# Вывести список всех рецептов
|
||||
# List all available recipes
|
||||
default:
|
||||
@just --list
|
||||
|
||||
# Запустить тесты через pytest
|
||||
# ── Testing ───────────────────────────────────────────────────────────────────
|
||||
|
||||
# Run tests via pytest
|
||||
tests:
|
||||
python -m pytest tests
|
||||
|
||||
# Запустить тесты с отчетом о покрытии
|
||||
# Run tests with coverage report
|
||||
tests-cov:
|
||||
python -m pytest --cov=argenta tests
|
||||
|
||||
# Запустить тесты с отчетом о покрытии с html репортом
|
||||
# Run tests with coverage HTML report
|
||||
tests-cov-html:
|
||||
python -m pytest --cov=argenta tests --cov-report=html
|
||||
|
||||
# Отформатировать код (Ruff + isort)
|
||||
# ── Code quality ──────────────────────────────────────────────────────────────
|
||||
|
||||
# Format code (Ruff + isort)
|
||||
format:
|
||||
python -m ruff format ./src
|
||||
python -m isort ./src
|
||||
|
||||
# Проверить типы через mypy (strict)
|
||||
# Check types via mypy (strict)
|
||||
mypy:
|
||||
python -m mypy -p argenta --strict
|
||||
|
||||
# Проверить стиль через wemake-python-styleguide
|
||||
# Check style via wemake-python-styleguide
|
||||
wps:
|
||||
python -m flake8 --format=wemake ./src
|
||||
|
||||
# Запустить линтер Ruff
|
||||
# Run Ruff linter
|
||||
ruff:
|
||||
python -m ruff check ./src
|
||||
|
||||
# Run all checks (format, mypy, ruff, wps)
|
||||
check-format: format mypy ruff wps
|
||||
|
||||
# ── Changelog (scriv) ─────────────────────────────────────────────────────────
|
||||
|
||||
# Create a new changelog fragment and open it in $EDITOR
|
||||
frag:
|
||||
if (-not (Test-Path "./changelog.d")) { New-Item -ItemType Directory -Path "./changelog.d" }
|
||||
scriv create --add
|
||||
|
||||
# Preview collected changelog without writing anything
|
||||
changelog-preview:
|
||||
scriv collect --dry-run
|
||||
|
||||
# Collect fragments into CHANGELOG.md for release (usage: just release 1.2.3)
|
||||
release version:
|
||||
scriv collect --version {{ version }} --add
|
||||
|
||||
Reference in New Issue
Block a user