add lint stage to github

This commit is contained in:
Dmitry Afanasyev 2022-08-14 23:54:04 +03:00
parent 707fbc1d3e
commit 6ad60f210f
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ jobs:
poetry run mypy . poetry run mypy .
- name: Analysing the code with flake8 - name: Analysing the code with flake8
run: | run: |
poetry run flake8 poetry run flake8 .
- name: Analysing code with isort - name: Analysing code with isort
run: | run: |
poetry run isort --check-only app poetry run isort --check-only app

View File

@ -1,9 +1,9 @@
import pytest import pytest
from aiogram import Bot, types from aiogram import Bot, types
from aiogram.dispatcher.filters.builtin import Command from aiogram.dispatcher.filters.builtin import Command
from app.core.bot import dispatcher
from app.tests.conftest import FakeTelegram from app.tests.conftest import FakeTelegram
from app.tests.data.factories import UserFactory from app.tests.data.factories import UserFactory
from core.bot import dispatcher
pytestmark = [ pytestmark = [
pytest.mark.asyncio, pytest.mark.asyncio,