Skip to content

Commit

Permalink
new relize (#558)
Browse files Browse the repository at this point in the history
* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* Create/endpoint game (#442)

* create endpoint_game

* create endpoint_game

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* test cd

* fix: remove games button for team agents (#445)

* Bugfix/game creation form fixes (#441)

* feat: add basic admin pages for new models

* refactor: remove wrong constraint

* bugfix: fix edit game form, now working but not completely

* bugfix: fix edit game form, now working properly

* perf: add more precise team filtering

---------

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>

* test cd

* Add docker scripts in Makefile and add ds_server in gitignore (#447)

* Add docker scripts in Makefile and add ds_server in gitignore

* Add new make commands in help

* Update README.md

* Решен баг с заполением БД реальными данными (#451)

* fix player_video_games views (#452)

Co-authored-by: zaritskiyaa <zaritskiyaa@mail.ru>

* fix stage

* Feature/models id sync (#454)

* refactor: merge migrations and create fresh initial

* feat: create new PK field for models, sync objects' ids

* fix: fix docstring error

* change ER diagram

---------

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>

* Bugfix/template fixes (#458)

* fix: remove unload for unloads

* fix: fix player's teams display

* Fix search display, implement searching games and add icons for edit/delete games (#461)

* Fix search display, implement seatching games and add icons for edit/delete games

* delete print

---------

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>

* fix: fix game creation via admin panel, also add basic form validation (#460)

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>

* Edit players_number (#453)

* Edit players_number

* Edit players_number

* Ruff fix

* Fix ruff v2

* Ruff fix v3

* Fix templates

* delete unsupport file

* ruff check

---------

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>

* Create/video recognition (#455)

* Save changes in poetry.lock

* code according to PEP8

* create endpoint video_recognition

* fix video api

* code according to PEP8

* code according to PEP8

* code according to PEP8

* code according to PEP8

* code according to PEP8

---------

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>

* refactoring video_api views and swagger doc (#464)

* refactoring video_api views and swagger doc

* expand service/a_hockey_requests.py/send_request_to_video_processing_service. Assigned try name for env param

* fix env

* fix bug with init environ object

---------

Co-authored-by: zaritskiyaa <zaritskiyaa@mail.ru>

* add requirement

* fix name mistake in env param (#465)

Co-authored-by: zaritskiyaa <zaritskiyaa@mail.ru>

* Bugfix/player number edit form (#470)

* fix: fix template for player number edit, also fix errors display

* fix: add view name

* Feature/factories and bugfix in player (#472)

* fix player

* add factory game

* rebild factory

* fix factory gamecreate

* fix factory gamecreate

* fix ruff

* fix warning timedata

---------

Co-authored-by: Максим Портнов <maximportnov99@yandex.ru>
Co-authored-by: Алексей Сосов~ <getchdnk.gmq@yandex.ru>

* fix game_team query (#477)

Co-authored-by: zaritskiyaa <zaritskiyaa@mail.ru>

* Add GameDataPlayer model for storing game JSON data (#481)

* Add GameDataPlayer model for storing game JSON data

* add jpg in ER docs

---------

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>

* connect celery with redis back/broker. create mock tasks (#484)

Co-authored-by: zaritskiyaa <zaritskiyaa@mail.ru>
Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>

* Add JSON player data factory (#483)

* add mock functional for processing video (#486)

* add mock functional for processing video

* fix readme

---------

Co-authored-by: zaritskiyaa <zaritskiyaa@mail.ru>

* Bugfix/fix analytic table in uploads (#493)

* fix_analytic_table_in_uploads

* fix_analytics_table_uploads

---------

Co-authored-by: Tom Bulmer <tombulmer@MacBook-Pro.local>

* rework GameDataPlayer model, refactoring mock celery tasks/serializer (#489)

Co-authored-by: zaritskiyaa <zaritskiyaa@mail.ru>

* Add celery instruction

* add celery instruction

* fix migrations conflict

* Add feature dynamic video button in player_views and templates player_id and video_games_button. And fixed the filter in the PlayerGamesVideo view by id instead of pk (#496)

* Feature/readme fix (#500)

* fix .gitignore and README

* mv pytest.ini in root folder

* Revert .python-version change

* Bugfix/template fix game detail (#499)

* Fix button game_detail button visual bug

* Add .python-version into gitignore

* move into the right center

* Added the feature of an additional column name of the competition on the games page. Added data to the context in the view of the GamesListView (#497)

* add make command for kson factory (#498)

* test_status_service (#501)

Co-authored-by: Tom Bulmer <tombulmer@MacBook-Pro.local>

* Added diagram video workers in docs. (#508)

Deleted commands for DS server from Makefile (image_video, start_video).
Deleted obsoleted units about parsing files and API DS from README.md.

* Update the game player model - update a player number unique constraint (#505) (#510)

* Update game player number unique constraint (#505)

* Fix code-style ruff issues

* Fix code-style ruff issues (#505)

* Update unique game player number constraint fields; update fields in create game player signal (#505)

* Refactor requests to DS API, add YandexDist token to settings and .env.example (#511)

* Tests remarks (#514)

* Add show message for unload_player_game_video (#509) (#512)

* feat: Add show message for unload_player_game_video.
fix: Change ' to " in base_settings.py.

* fix: Revert " to ' in base_settings.py.

* fix: Add game name to message.

* Add validation to check unique player number field in player update form, edit players numbers in game form. (#517)

* Feature/download player video (#520) (#521)

* feat: Add download player video if video link exists.
feat: Add yadisk in poetry.

* fix: Refactor code.

* fix: Move player video dir to constants.
fix: Change path video dir to path video file.

* fix: Add type hinting.
fix: Refactor code.

* fix: Change varialble name from error to error_message.

* add TODO

---------

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>

* Bugfix/visible form adding player in team (#518) (#523)

* fix: Correct misprints in template.
fix: Fix visible form for adding teams.
fix: Save added or updated player's teams.

* fix: Change PlayerForm for visible team form.

* fix: Move mixin in mixins.py and ajax view in ajax.py.

* Bugfix/change footer buttons color (#525) (#526)

* fix: Add return button to pages:
    staff_id_team_edit,
    staff_id_team_create,
    edit_team_players_numbers,
    game_edit.

* fix: Change pagination border to border-2.
fix: Correct position of footer buttons.

* fix: Change color of footer buttons.

* Integrate Celery worker and flower run into Make run (Issue #515) (#527)

* Integrate Celery worker and flower run into Make run

* add celery connction in config django

---------

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>

* Feature/django message in game card (#519) (#522)

* Add django messages to game detail page.

* Add django messages to game detail page.

* Fix issue #507 - fix stage (#530)

* Fix issue #507 - fix dependencies

* Fix issue #507 - optimze  dependencies fix

* Fix stage deployment error (#535)

* Add celery tasks to download videos from Y.disk, to slice video with player moments. (#532)

* Feature/Add DS mock server (#533)

* feat: Add fastapi[standard] in development requirements.

* feat: Add FastAPI ds mock server.

* feat: Add ds-mock command to Makefile.

* fix: Delete queues from Celery.

* fix: Change directory service to Django app.

* feat: Add DS mock server.

* fix: Delete redundant logging.

* fix: Add logging to a_hockey_requests.
fix: Change raise error to message.

* fix: Delete redundant files.

* fix: Change print to logging.
fix: Correct import sort.

* fix: Correct docstring in apps.py.

* fix: Update README.md.

* fix: Add file with test response json.

* add some TODO

* fix: Move mock_ds_server in separate directory.

* fix: Update Makefile.

* feat: Add mock_ds_server in Celery autodiscovery tasks.

* fix: Add logging and return error messages in send_game_video_to_process.

* fix: Add logging and change exception catch in send_request_to_process_video.

* fix: Move mock_ds_server in separate directory.

* fix: Change GameFeatureSerializer to structure of DS answer.

* fix: Add logging and small refactoring.

* fix: Add type hints in GameFeatureSerializer.

* fix: Update Makefile

* feat: Return Celery queues

* fix: Correct task arguments

* fix: Change response of mock DS server

Small refactor code.

* fix: Change logging level

* fix: Change bulk_create_gamedataplayer_objects

To structure response mock DS server

* Revert "Merge branch 'dev' into feature/ds-mock-server"

This reverts commit 879a5ad, reversing
changes made to 2cd6125.

* fix: Delete unnecessary code.

* fix: Add try..catch exceptions.

* fix: Change game name to game id.

* fix: Old data of players rewrite, if exist.

* feat: Unlink mock DS server from the Django server.

* fix: Revert RequestException.

* feat: Add TODO for send mail.

* fix: Delete unused import.

* feat: Add send mail of end video process.

---------

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>

* fix bug (#538)

Co-authored-by: Khasanov Alexander <AlexanderKhasanov1205@yandex.ru>

* Bugfix/random teams in created game (#539)

* fix: Close div and change h7 to h6.

* feat: Add back button to game_info page.

* fix: Correct adding team to GameTeam.

Delete mock-code for request to DS server.

* fix: Refactor view-function send_game_video_to_process.

* fix: Change url to send_game_video_to_process_view.

* fix: Delete unusale import.

* add spec of analytics in docs

* add spec of analytics in docs

* Feature/removing celery (#545)

* game views in process

* remove celery of game views

* remove celery of player_views

* remove celery

* fix core.config.base

* fix players-view

* fix README

* test prod workflow

* fix /infra/prod/

* fix docker compose prod

* test prod.dockerfile

* test prod.dockerfile2

* test prod.dockerfile3

* test prod.dockerfile4

* test prod.dockerfile5

* test prod.dockerfile6

* test deploy to production

* test deploy to production2

* test deploy to production3

* test deploy to production4

* test deploy to production6

* Relocated openpyxl config file to configs folder (#549)

* Add commands export-db and import-db. (#548)

* test deploy to production7

* test deploy to production8

* test deploy to production9

* test deploy to production10

* test deploy to production10

* test deploy to production11

* test deploy to production12

* test deploy to production13

* test deploy to production14

* test deploy to production15

* test deploy to production16

* test deploy to production17

* test deploy to production18

* test deploy to production19

* test deploy to production20

* test deploy to production21

* test deploy to production22

* test deploy to production23

* test deploy to production24

* test deploy to production25

* test deploy to production26

* test deploy to production27

* test secrets

* test secrets1

* test secrets2

* test secrets3

* test secrets4

* test secrets5

* test secrets6

* test secrets7

* test copy infra to vps

* test copy infra to vps - 1

* test copy infra to vps - 2

* test copy infra to vps - 3

* test copy infra to vps - 4

* test copy infra to vps - 5

* test copy infra to vps - 6

* test copy infra to vps - 7

* test copy infra to vps - 8

* test copy infra to vps - 9

* test copy infra to vps - 10

* test copy infra to vps - 11

* test copy infra to vps - 12

* Removed the video_api module and everything related to it

* test deploy

* test deploy1

* test deploy2

* test deploy3

* test deploy4

* test deploy5

* test deploy6

* test deploy7

* test deploy8

* test deploy8

* test deploy9

* test deploy10

* test deploy11

* test deploy12

* test deploy13

* test deploy14

* test deploy15

* test deploy16

* test deploy17

* test deploy18

* test deploy19

* test deploy20

* test deploy21

* pre-realease

* pre-realease1

* pre-realease2

* pre-realease3

* pre-realease4

* pre-realease5

* pre-realease6

* pre-realease7

* pre-realease8

* pre-realease9

* pre-realease10

* pre-realease11

* on review

* test build

* test build1

* test build2

* test build3

* test watchtower

* test watchtower1

* on review3

* on review4

* test build

* test build1

* on review 4

* test build-1

* test build-2

* test build 5

* test build 6

* test build 6

* test build 7

* test build 8

* test build 8

* test build 9

* test build 10

* test build 11

* test build 12

* test build 14

* on_review

* on_review final

* on_review final

* on_review final1

* Remove parser and rewrite command fill-db (#554)

* fix by review

---------

Co-authored-by: zaritskiyaa <zaritskiyaa@mail.ru>
Co-authored-by: Rodion a vrode ne on <132199131+SHURSHALO@users.noreply.github.com>
Co-authored-by: Nikita Smykov <132088678+Apicqq@users.noreply.github.com>
Co-authored-by: Игорь Митяшин <132353894+ItsFreez@users.noreply.github.com>
Co-authored-by: Salikov Nikita <nik5275622@mail.ru>
Co-authored-by: zaritskiiAA <166800734+zaritskiiAA@users.noreply.github.com>
Co-authored-by: Milkyaway13 <129880524+Milkyaway13@users.noreply.github.com>
Co-authored-by: Maxim Portnov <124585181+DoomHunter190@users.noreply.github.com>
Co-authored-by: Максим Портнов <maximportnov99@yandex.ru>
Co-authored-by: Алексей Сосов~ <getchdnk.gmq@yandex.ru>
Co-authored-by: posredn1k <114393753+posredn1k@users.noreply.github.com>
Co-authored-by: trippiez <116493293+trippiez@users.noreply.github.com>
Co-authored-by: Tom Bulmer <tombulmer@MacBook-Pro.local>
Co-authored-by: PavelNep1996 <118282648+PavelNep1996@users.noreply.github.com>
Co-authored-by: Borovkov Ilya <48968499+ffff00-korj@users.noreply.github.com>
Co-authored-by: AleksandrPU <AleksandrPU@users.noreply.github.com>
Co-authored-by: ramil-khan <116222162+ramil-khan@users.noreply.github.com>
Co-authored-by: RuselK <123992635+RuselK@users.noreply.github.com>
Co-authored-by: AlexanderKhasanov <sasha_020398@mail.ru>
Co-authored-by: Khasanov Alexander <AlexanderKhasanov1205@yandex.ru>
Co-authored-by: OlegGsk <142893688+OlegGsk@users.noreply.github.com>
Co-authored-by: Олег Говоровский <oleq.gov@ya.ru>
Co-authored-by: Konstantin Shperling (Toksi) <79082640+Toksi86@users.noreply.github.com>
Co-authored-by: Иван <128288828+InKLaR1TY@users.noreply.github.com>
Co-authored-by: Toksi86 <puma-yellow@yandex.ru>
  • Loading branch information
1 parent 8546021 commit 7ef3429
Show file tree
Hide file tree
Showing 353 changed files with 33,550 additions and 146 deletions.
40 changes: 40 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# API settings
API_DOCS_KEY=8f2d9e1b2c4e6f
# Django settings
SECRET_KEY=12345678
DEBUG=True
ALLOWED_HOSTS=*
# Superuser settings
DJANGO_SUPERUSER_FIRST_NAME=Админ
DJANGO_SUPERUSER_LAST_NAME=Админ
DJANGO_SUPERUSER_ROLE=Администратор
DJANGO_SUPERUSER_USERNAME=admin
DJANGO_SUPERUSER_EMAIL=admin@admin.ru
DJANGO_SUPERUSER_PASSWORD=admin
# Postgres settings
DB_ENGINE='django.db.backends.postgresql'
POSTGRES_PASSWORD='1qw2#ER$'
POSTGRES_USER='django'
POSTGRES_DB='django'
DB_HOST='localhost'
DB_PORT='5432'
# Email settings
EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST='smtp.yandex.ru'
EMAIL_PORT=587
# реквизиты для аутентификации в почтовом сервисе
EMAIL_HOST_USER=your_mail@yandex.ru
EMAIL_HOST_PASSWORD=your_mail_password
EMAIL_USE_TLS=True
# Базовый урл сервиса по обработке видео
PROCESSING_SERVICE_BASE_URL=http://127.0.0.1:8010/
#Redis
REDIS_BROKER_DATABASE_LEVEL=0
# Celery
SETTINGS_LEVEL=dev

CELERY_BROKER_HOST=localhost
CELERY_BROKER_PORT=6379
CELERY_VISIBILITY_TIMEOUT=360
# Yandex Disk settings
YANDEX_DISK_OAUTH_TOKEN=ya_oauth_token
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Bug report
about: Шаблон для описания бага в приложении
title: ''
labels: bug
assignees: ''

---

# Где был обнаружен баг ?

*Описание места и возможных причин бага.*

# Скриншоты

*Сюда добавить возможные скрины с описанием.*

# Предложения и предположения как исправить

*Возможные догадки, как исправить.*
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/docs-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Docs template
about: Оформление Readme и документации
title: ''
labels: documentation
assignees: ''

---

# Что нужно описать?

*Какую часть функционала описываем.*


# Где?

*В какой части репозитория пишем.*
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/new-feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: New feature
about: Шаблон на реализацию нового функционала
title: ''
labels: enhancement
assignees: ''

---

# Зачем?

*Зачем выполняется реализация задачи и какую проблему она решает.*

# Как нужно делать?

*Как мы выполняем реализацию данной задачи, какие действия нужны для достижения цели.*

# Где?

*Где делаем реализацию задачи, какие сервисы задействованы, ссылка на требования, сcылка на API, скриншоты.*
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Description

Если нужно что-то дополнить по внесённым изменениям.

## Type of change

Пожалуйста, удалите варианты, которые не относятся к ПР-у.

- [ ] Documentation (опечатки, примеры кода или любое обновление документации)
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

# How Has This Been Tested?

Опишите, пожалуйста, тесты, которые вы провели для проверки ваших изменений. Предоставьте инструкции, чтобы мы могли воспроизвести их. Также укажите все необходимые детали конфигурации тестов.

## Checklist:

- [ ] Мой код соответствует code-style данного проекта
- [ ] Я провел самоанализ собственного кода
- [ ] Я внес соответствующие изменения в документацию
29 changes: 29 additions & 0 deletions .github/workflows/ codestyle_pep8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Codestyle_pep8

on: [push, pull_request]

jobs:
ruff:
runs-on: ubuntu-latest
name: ruff
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: ruff
run: |
poetry run ruff check
133 changes: 133 additions & 0 deletions .github/workflows/prod_deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: Production deploy

on:
push:
branches:
- master

env:
DEPLOY_PATH: adaptive_hockey_federation
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

defaults:
run:
working-directory: .

jobs:
pytest:
runs-on: ubuntu-latest
name: pytest
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install Poetry
uses: snok/install-poetry@v1
with:
poetry-version: 1.5.0

- name: Check out the repo
uses: actions/checkout@v4

- name: Install dependencies
run: |
poetry install
- name: pytest
run: |
poetry run pytest
working-directory: adaptive_hockey_federation

build_and_push:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: pytest

steps:
- uses: actions/checkout@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image for Production
uses: docker/build-push-action@v5
with:
context: .
file: infra/prod/prod.Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


deploy:
if: github.ref == 'refs/heads/master'
name: Deploy changes on server
needs: [pytest, build_and_push]
runs-on: ubuntu-latest
environment:
name: prod_deploy
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Delete stage & dev
run: |
rm -r infra/stage
rm -r infra/dev
- name: Copy infra via ssh
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
source: "infra/"
target: "${{ env.DEPLOY_PATH }}/infra"
rm: true
strip_components: 1

- name: Execute commands on VPS
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
script: |
cd ${{ env.DEPLOY_PATH }}
touch .env
echo "${{ secrets.ENV_FILE }}" > .env
cd infra/prod/
sudo systemctl stop adaptive_hockey_federation.service
docker system prune --force
sudo cp -f /home/production/adaptive_hockey_federation/infra/prod/adaptive_hockey_federation.service /etc/systemd/system/adaptive_hockey_federation.service
sudo systemctl daemon-reload
sudo systemctl start adaptive_hockey_federation.service
sudo systemctl is-active --quiet adaptive_hockey_federation.service
until [ $? -eq 0 ]; do
echo "Waiting for adaptive_hockey_federation.service to be active..."
sleep 5
sudo systemctl is-active --quiet adaptive_hockey_federation.service
done
echo "adaptive_hockey_federation.service is active"
docker exec adaptive_hockey_federation python manage.py collectstatic --noinput
docker exec adaptive_hockey_federation python manage.py migrate
32 changes: 32 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Pytest

on:
push:
branches:
- dev

jobs:
pytest:
runs-on: ubuntu-latest
name: pytest
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: pytest
run: |
poetry run pytest
working-directory: adaptive_hockey_federation
46 changes: 36 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand Down Expand Up @@ -138,10 +138,8 @@ venv.bak/
# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# ruff
.ruff_cache/

# Pyre type checker
.pyre/
Expand All @@ -153,8 +151,36 @@ dmypy.json
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.idea/

# VScode
.vscode/

# Pylint settings
.pylintrc

/adaptive_hockey_federation/parser/Именная заявка/
resourses/


#Django static
static/
.DS_Store

#Data JSON
*.json
*.zip

#Data XLSX
*.XLSX
data/

#Data .csv
csv/

#MediaFiles
media/

# DS server
a_hockey-main/
adaptive_hockey_federation/service/test_video/
Loading

0 comments on commit 7ef3429

Please sign in to comment.