chore: add uv package manager and ruff linter configuration
- Add pyproject.toml with uv and ruff configuration - Pin Python version to 3.13 via .python-version - Add Makefile commands: lint, format, fix - Apply ruff formatting to entire codebase - Remove unused imports (base64 in yookassa/simple_subscription) - Update .gitignore for new config files
This commit is contained in:
@@ -25,8 +25,20 @@ reload-follow: ## Перезапустить контейнеры с логам
|
||||
|
||||
.PHONY: test
|
||||
test: ## Запустить тесты
|
||||
@echo "🧪 Запускаем тесты..."
|
||||
pytest -v
|
||||
uv run pytest -v
|
||||
|
||||
.PHONY: lint
|
||||
lint: ## Проверить код (ruff check)
|
||||
uv run ruff check .
|
||||
|
||||
.PHONY: format
|
||||
format: ## Форматировать код (ruff format)
|
||||
uv run ruff format .
|
||||
|
||||
.PHONY: fix
|
||||
fix: ## Исправить код (ruff check --fix + format)
|
||||
uv run ruff check . --fix
|
||||
uv run ruff format .
|
||||
|
||||
.PHONY: help
|
||||
help: ## Показать список доступных команд
|
||||
|
||||
Reference in New Issue
Block a user