mypy-ci-fix
Some checks failed
Deploy on push / deploy (push) Failing after 3m59s

This commit is contained in:
2025-09-16 11:59:57 +03:00
parent 4ea32e3b83
commit 37d502801a
2 changed files with 23 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ jobs:
- name: Run linting and type checking
- name: Run linting
run: |
echo "🔍 Запускаем проверки качества кода..."
@@ -46,10 +46,21 @@ jobs:
# Ruff formatting check
echo "🎨 Проверяем форматирование с помощью Ruff..."
uv run ruff format . --line-length 120
# MyPy type checking
- name: Run type checking
run: |
echo "🏷️ Проверяем типы с помощью MyPy..."
uv run mypy . --ignore-missing-imports -v
echo "📊 Доступная память:"
free -h
# Пробуем dmypy сначала, если не работает - fallback на обычный mypy
if command -v dmypy >/dev/null 2>&1 && uv run dmypy run -- auth/ cache/ orm/ resolvers/ services/ storage/ utils/ --ignore-missing-imports; then
echo "✅ dmypy выполнен успешно"
else
echo "⚠️ dmypy недоступен, используем обычный mypy"
# Запускаем mypy только на основных модулях для экономии памяти
uv run mypy auth/ cache/ orm/ resolvers/ services/ storage/ utils/ --ignore-missing-imports
fi
- name: Install Node.js Dependencies
run: |