-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be3dc68
commit d2e8885
Showing
7 changed files
with
56 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,18 @@ | ||
RYE=rye | ||
PYTEST=$(RYE) run pytest | ||
MYPY=$(RYE) run mypy --ignore-missing-imports | ||
BLACK=$(RYE) run black | ||
ISORT=$(RYE) run isort | ||
PYLINT=$(RYE) run pylint | ||
UVICORN=$(RYE) run uvicorn | ||
PACKAGE=dddpy | ||
|
||
install: | ||
sync: | ||
$(RYE) sync | ||
$(POETRY_EXPORT) | ||
|
||
update: | ||
$(POETRY) sync | ||
|
||
test: install | ||
$(MYPY) main.py ./${PACKAGE}/ | ||
$(PYTEST) -vv | ||
|
||
fmt: | ||
$(ISORT) main.py ./${PACKAGE} ./tests | ||
$(BLACK) main.py ./${PACKAGE} ./tests | ||
$(PYTEST) -vv | ||
|
||
lint: | ||
$(PYLINT) main.py ./${PACKAGE} ./tests | ||
format: | ||
$(RYE) run ruff format | ||
|
||
dev: | ||
${UVICORN} main:app --reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
from .book_dto import BookDTO | ||
from .book_query_service import BookQueryServiceImpl | ||
from .book_repository import BookCommandUseCaseUnitOfWorkImpl, BookRepositoryImpl | ||
from .book_repository import ( | ||
BookCommandUseCaseUnitOfWorkImpl, | ||
BookRepositoryImpl, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters