Skip to content

Commit

Permalink
Merge branch 'dev' into feature/add_pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
nrthbnd committed Dec 16, 2023
2 parents c7afd68 + 80f7ea7 commit 585f472
Show file tree
Hide file tree
Showing 44 changed files with 2,661 additions and 420 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -27,6 +52,7 @@ jobs:
- name: flake8
run: |
poetry run flake8
mypy:
runs-on: ubuntu-latest
name: mypy
Expand All @@ -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
Expand Down
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ cython_debug/
# PyCharm
.idea/

# Static
static/

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


#Django static
static/
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ repos:
language: system
pass_filenames: false
entry: poetry export --without-hashes --output requirements/production.txt
files: ^(pyproject.toml|poetry.lock)$
files: ^(pyproject.toml|poetry.lock)$
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ help:
@echo " migrate - $(SHELL_GREEN)Команда для применения к базе данных готовых миграций.$(SHELL_NC)"
@echo " createsuperuser - $(SHELL_GREEN)Команда для создания супер-юзера.$(SHELL_NC)"
@echo " run - $(SHELL_GREEN)Команда для локального запуска проекта.$(SHELL_NC)"
@echo " fill-db - $(SHELL_GREEN)Команда для заполнения базы данных с помощью парсера.$(SHELL_NC)"
@echo " help - $(SHELL_GREEN)Команда вызова справки.$(SHELL_NC)"
@echo "$(SHELL_YELLOW)Для запуска исполнения команд используйте данные ключи совместно с командой 'make', например 'make init-app'."
@echo "При запуске команды 'make' без какого либо ключа, происходит вызов справки.$(SHELL_NC)"
Expand Down Expand Up @@ -56,4 +57,8 @@ run:
cd $(PROJECT_DIR) && $(DJANGO_RUN) runserver


# Заполнение базы данных с помощью парсера.
fill-db:
cd $(PROJECT_DIR) && $(DJANGO_RUN) fill-db

.PHONY: help
Loading

0 comments on commit 585f472

Please sign in to comment.