cleaning root
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2025-09-11 08:18:31 +09:00
parent fcf27c1639
commit b0346e4bd7
26 changed files with 352 additions and 159 deletions

View File

@@ -12,19 +12,36 @@ install:
# Инициализация проекта
init:
python init_project.py
python tools/init_project.py
# Демонстрация возможностей
demo:
python demo.py
python tools/demo.py
# Интерактивный тест
test:
python test_quiz.py
python tests/test_quiz.py
# Тест импортов и конфигурации
test-bot:
python test_bot.py
python tests/test_bot.py
# Запуск всех pytest тестов
pytest:
python -m pytest tests/ -v
# Покрытие кода тестами
coverage:
python -m pytest tests/ --cov=src --cov-report=html --cov-report=term
# Типизация
type-check:
python -m mypy src/ || true
# Проверка безопасности
security-check:
python -m safety check || true
python -m bandit -r src/ || true
# Запуск бота (требует токен в .env)
run:
@@ -81,21 +98,21 @@ docker-monitor:
# Локальное тестирование pipeline
ci-test:
@echo "🧪 Запуск локального тестирования..."
python -m flake8 src/ config/ --max-line-length=88 || true
python -m pytest test_*.py -v || true
python -m flake8 src/ config/ tools/ --max-line-length=88 || true
python -m pytest tests/ -v || true
# Проверка кода
lint:
@echo "🔍 Проверка кода..."
python -m black --check src/ config/ || true
python -m isort --check-only src/ config/ || true
python -m flake8 src/ config/ --max-line-length=88 || true
python -m black --check src/ config/ tools/ tests/ || true
python -m isort --check-only src/ config/ tools/ tests/ || true
python -m flake8 src/ config/ tools/ tests/ --max-line-length=88 || true
# Форматирование кода
format:
@echo "✨ Форматирование кода..."
python -m black src/ config/
python -m isort src/ config/
python -m black src/ config/ tools/ tests/
python -m isort src/ config/ tools/ tests/
# Проверка безопасности
security: