mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
add lint stage to github
This commit is contained in:
parent
707fbc1d3e
commit
6ad60f210f
2
.github/workflows/check-lint.yml
vendored
2
.github/workflows/check-lint.yml
vendored
@ -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
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user