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:
c0mrade
2026-01-24 17:45:27 +03:00
parent cd80164bee
commit 9a2aea038a
466 changed files with 63301 additions and 69047 deletions
+14 -2
View File
@@ -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: ## Показать список доступных команд