From 80f7ea7607bbbad8f4870983a4f8cd38c6cab400 Mon Sep 17 00:00:00 2001 From: Petr Nazarov <118269184+Pnazarov86@users.noreply.github.com> Date: Sat, 16 Dec 2023 13:00:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B0=D1=81=D0=BA=D0=B0=202.=20=D0=9E?= =?UTF-8?q?=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20workfl?= =?UTF-8?q?ow=20(#61)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Добавлены миграции * Добавлены миграции * Обновил workflow * Обновил workflow --- .../{mypy_flake.yml => codestyle_pep8.yaml} | 30 +++++++++++++++++-- .../0002_alter_player_patronymic.py | 18 +++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) rename .github/workflows/{mypy_flake.yml => codestyle_pep8.yaml} (63%) create mode 100644 adaptive_hockey_federation/main/migrations/0002_alter_player_patronymic.py diff --git a/.github/workflows/mypy_flake.yml b/.github/workflows/ codestyle_pep8.yaml similarity index 63% rename from .github/workflows/mypy_flake.yml rename to .github/workflows/ codestyle_pep8.yaml index 91951839..d63c0892 100644 --- a/.github/workflows/mypy_flake.yml +++ b/.github/workflows/ codestyle_pep8.yaml @@ -3,6 +3,31 @@ name: CI on: [push, pull_request] jobs: + isort: + runs-on: ubuntu-latest + name: isort + steps: + - name: Установка Python + uses: actions/setup-python@v4 + with: + python-version: 3.11 + + - name: Установка Poetry + uses: snok/install-poetry@v1 + with: + poetry-version: 1.5.0 + + - name: Извлечение репозитория + uses: actions/checkout@v4 + + - name: Установка зависимостей + run: | + poetry install + + - name: isort + run: | + poetry run isort . + flake8: runs-on: ubuntu-latest name: flake8 @@ -15,7 +40,7 @@ jobs: - name: Установка Poetry uses: snok/install-poetry@v1 with: - poetry-version: 1.7.0 + poetry-version: 1.5.0 - name: Извлечение репозитория uses: actions/checkout@v4 @@ -27,6 +52,7 @@ jobs: - name: flake8 run: | poetry run flake8 + mypy: runs-on: ubuntu-latest name: mypy @@ -39,7 +65,7 @@ jobs: - name: Установка Poetry uses: snok/install-poetry@v1 with: - poetry-version: 1.7.0 + poetry-version: 1.5.0 - name: Извлечение репозитория uses: actions/checkout@v4 diff --git a/adaptive_hockey_federation/main/migrations/0002_alter_player_patronymic.py b/adaptive_hockey_federation/main/migrations/0002_alter_player_patronymic.py new file mode 100644 index 00000000..ffafb0be --- /dev/null +++ b/adaptive_hockey_federation/main/migrations/0002_alter_player_patronymic.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.7 on 2023-12-06 21:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='player', + name='patronymic', + field=models.CharField(blank=True, default='', max_length=256, verbose_name='Отчество'), + ), + ]