Skip to content

Commit b3393ca

Browse files
Narrow pre-registration PR scope
1 parent 0c0c2d7 commit b3393ca

85 files changed

Lines changed: 237 additions & 263 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ exclude = [
6363
]
6464
venvPath = "."
6565
venv = ".venv"
66+
reportShadowedImports = false
6667

6768
[tool.ruff]
6869
line-length = 88
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
from .views import v1_router
2-
3-
router = v1_router
4-
5-
__all__ = ["router"]
1+
from .views import v1_router as router

wacruit/src/apps/announcement/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from sqlalchemy import DateTime
44
from sqlalchemy import String
5-
from sqlalchemy import Text
65
from sqlalchemy import text
6+
from sqlalchemy import Text
77
from sqlalchemy.orm import Mapped
88
from sqlalchemy.orm import mapped_column
99

wacruit/src/apps/announcement/repositories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from sqlalchemy.orm import Session
77

88
from wacruit.src.apps.announcement.models import Announcement
9-
from wacruit.src.database.connection import Transaction
109
from wacruit.src.database.connection import get_db_session
10+
from wacruit.src.database.connection import Transaction
1111

1212

1313
class AnnouncementRepository:

wacruit/src/apps/common/schemas.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
from typing import Any
2-
from typing import Generic
3-
from typing import Iterable
4-
from typing import TypeVar
1+
from typing import Any, Generic, Iterable, TypeVar
52

63
from pydantic import BaseModel
74
from pydantic.generics import GenericModel

wacruit/src/apps/dummy/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
from .views import v1_router
2-
3-
router = v1_router
4-
5-
__all__ = ["router"]
1+
from .views import v1_router as router

wacruit/src/apps/faq/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
from .views import v3_router
2-
3-
router = v3_router
4-
5-
__all__ = ["router"]
1+
from .views import v3_router as router

wacruit/src/apps/faq/repositories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from sqlalchemy.orm import Session
55

66
from wacruit.src.apps.faq.models import FAQ
7-
from wacruit.src.database.connection import Transaction
87
from wacruit.src.database.connection import get_db_session
8+
from wacruit.src.database.connection import Transaction
99

1010

1111
class QuestionRepository:

wacruit/src/apps/faq/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from fastapi import Depends
66

77
from wacruit.src.apps.common.schemas import ListResponse
8+
from wacruit.src.apps.faq.models import FAQ
89
from wacruit.src.apps.faq.schemas import CreateQuestionRequest
910
from wacruit.src.apps.faq.schemas import QuestionResponse
1011
from wacruit.src.apps.faq.schemas import UpdateQuestionRequest
@@ -16,7 +17,7 @@
1617

1718
@v3_router.get(path="", status_code=HTTPStatus.OK)
1819
def get_questions(
19-
question_service: Annotated[QuestionService, Depends()],
20+
question_service: Annotated[QuestionService, Depends()]
2021
) -> ListResponse[QuestionResponse]:
2122
res = question_service.get_questions()
2223
items = []
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
from .views import v3_router
2-
3-
router = v3_router
4-
5-
__all__ = ["router"]
1+
from .views import v3_router as router

0 commit comments

Comments
 (0)