Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinRaikhert committed Dec 18, 2023
1 parent 4993cac commit 12b097a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
rev: 6.1.0
hooks:
- id: flake8
exclude: migrations/|.*settings(\.py|/)?
exclude: migrations/|config/|.*settings(\.py|/)?
additional_dependencies:
- flake8-isort
- flake8-django
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Определение переменных
PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
MANAGE_DIR := $(PROJECT_DIR)/adaptive_hockey_federation/manage.py
DJANGO_DIR := $(PROJECT_DIR)/adaptive_hockey_federation
POETRY_RUN := poetry run python
DJANGO_RUN := $(POETRY_RUN) $(MANAGE_DIR)
SHELL_GREEN = \033[32m
Expand All @@ -22,6 +23,7 @@ help:
@echo " createsuperuser - $(SHELL_GREEN)Команда для создания супер-юзера.$(SHELL_NC)"
@echo " run - $(SHELL_GREEN)Команда для локального запуска проекта.$(SHELL_NC)"
@echo " fill-db - $(SHELL_GREEN)Команда для заполнения базы данных с помощью парсера.$(SHELL_NC)"
@echo " pytest - $(SHELL_GREEN)Команда для прогона юнит тестов pytest.$(SHELL_NC)"
@echo " help - $(SHELL_GREEN)Команда вызова справки.$(SHELL_NC)"
@echo "$(SHELL_YELLOW)Для запуска исполнения команд используйте данные ключи совместно с командой 'make', например 'make init-app'."
@echo "При запуске команды 'make' без какого либо ключа, происходит вызов справки.$(SHELL_NC)"
Expand Down Expand Up @@ -61,4 +63,9 @@ run:
fill-db:
cd $(PROJECT_DIR) && $(DJANGO_RUN) fill-db

# Прогон тестов с помощью pytest
pytest:
cd $(DJANGO_DIR) && pytest


.PHONY: help
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django.core.management.base import BaseCommand

from adaptive_hockey_federation.settings import RESOURSES_ROOT
from adaptive_hockey_federation.core.config.dev_settings import RESOURSES_ROOT


class Command(BaseCommand):
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ mypy_path = "./adaptive_hockey_federation"
module = [
"adaptive_hockey_federation.parser.user_card",
"adaptive_hockey_federation.parser.*",
"adaptive_hockey_federation.core.config.dev_settings",
]
ignore_missing_imports = true

Expand Down

0 comments on commit 12b097a

Please sign in to comment.