Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests/ci #16

Merged
merged 31 commits into from
Oct 16, 2023
Merged

Tests/ci #16

merged 31 commits into from
Oct 16, 2023

Conversation

Vladless
Copy link

Добавлены тесты flake8 и mypy
Для mypy использована библиотека django-stubs, внесены настройки в poetry
Поправлены все ошибки для полного прохождения github worklows

@Raidzin Raidzin self-requested a review October 15, 2023 09:59
Copy link
Member

@Raidzin Raidzin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хорошее начало, только небольшие правки по codestyle

import os

from django.core.asgi import get_asgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'adaptive_hockey_federation.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мы проекте будем переносить строки другим способом

foo(
    'bar',
    'foo',
)

Это относится ко всем подобным изменениям

pyproject.toml Outdated
@@ -9,6 +9,7 @@ readme = "README.md"
python = "^3.11"
django = "^4.2.6"
gunicorn = "^21.2.0"
django-stubs = "^4.2.4"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это зависимость тестовая, нужно перенести в группу test

@Raidzin Raidzin merged commit a788f6b into dev Oct 16, 2023
4 checks passed
@Raidzin Raidzin deleted the tests/CI branch October 16, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants