From 6ad60f210fd730c2da35019cfca305b6a2daf670 Mon Sep 17 00:00:00 2001 From: Dmitry Afanasyev Date: Sun, 14 Aug 2022 23:54:04 +0300 Subject: [PATCH] add lint stage to github --- .github/workflows/check-lint.yml | 2 +- app/tests/bot/test_bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-lint.yml b/.github/workflows/check-lint.yml index f42712e..ba2aaa8 100644 --- a/.github/workflows/check-lint.yml +++ b/.github/workflows/check-lint.yml @@ -65,7 +65,7 @@ jobs: poetry run mypy . - name: Analysing the code with flake8 run: | - poetry run flake8 + poetry run flake8 . - name: Analysing code with isort run: | poetry run isort --check-only app \ No newline at end of file diff --git a/app/tests/bot/test_bot.py b/app/tests/bot/test_bot.py index 8b649bc..43a78a0 100644 --- a/app/tests/bot/test_bot.py +++ b/app/tests/bot/test_bot.py @@ -1,9 +1,9 @@ import pytest from aiogram import Bot, types from aiogram.dispatcher.filters.builtin import Command +from app.core.bot import dispatcher from app.tests.conftest import FakeTelegram from app.tests.data.factories import UserFactory -from core.bot import dispatcher pytestmark = [ pytest.mark.asyncio,