Skip to content

Commit f6ef504

Browse files
ci(autoupdate): Autoupdating commit msg (#13)
* ci(autoupdate): Autoupdating commit msg updates: - [github.com/psf/black: 22.12.0 → 23.3.0](psf/black@22.12.0...23.3.0) - [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](codespell-project/codespell@v2.2.2...v2.2.4) - [github.com/pre-commit/mirrors-mypy: v0.991 → v1.2.0](pre-commit/mirrors-mypy@v0.991...v1.2.0) - [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.4 → v3.0.0-alpha.9-for-vscode](pre-commit/mirrors-prettier@v3.0.0-alpha.4...v3.0.0-alpha.9-for-vscode) - [github.com/pre-commit/mirrors-eslint: v8.33.0 → v8.39.0](pre-commit/mirrors-eslint@v8.33.0...v8.39.0) * ci(pre-commit): Autofixing commit msg from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d53a87d commit f6ef504

File tree

11 files changed

+5
-22
lines changed

11 files changed

+5
-22
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: trailing-whitespace
2121
files: ^backend/
2222
- repo: https://github.com/psf/black
23-
rev: 22.12.0
23+
rev: 23.3.0
2424
hooks:
2525
- id: black
2626
language_version: python3.11
@@ -34,25 +34,25 @@ repos:
3434
args:
3535
- --settings-path=backend/pyproject.toml
3636
- repo: https://github.com/codespell-project/codespell
37-
rev: v2.2.2
37+
rev: v2.2.4
3838
hooks:
3939
- id: codespell
4040
additional_dependencies:
4141
- tomli
4242
- repo: https://github.com/pre-commit/mirrors-mypy
43-
rev: "v0.991"
43+
rev: "v1.2.0"
4444
hooks:
4545
- id: mypy
4646
args:
4747
- --config-file=backend/pyproject.toml
4848
- repo: https://github.com/pre-commit/mirrors-prettier
49-
rev: "v3.0.0-alpha.4"
49+
rev: "v3.0.0-alpha.9-for-vscode"
5050
hooks:
5151
- id: prettier
5252
files: \.[jt]sx?$
5353
types_or: [css, javascript]
5454
- repo: https://github.com/pre-commit/mirrors-eslint
55-
rev: "v8.33.0"
55+
rev: "v8.39.0"
5656
hooks:
5757
- id: eslint
5858
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx

backend/src/api/routes/account.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ async def get_account(
5757
id: int,
5858
account_repo: AccountCRUDRepository = fastapi.Depends(get_repository(repo_type=AccountCRUDRepository)),
5959
) -> AccountInResponse:
60-
6160
try:
6261
db_account = await account_repo.read_account_by_id(id=id)
6362
access_token = jwt_generator.generate_access_token(account=db_account)
@@ -93,7 +92,6 @@ async def update_account(
9392
update_password: str | None = None,
9493
account_repo: AccountCRUDRepository = fastapi.Depends(get_repository(repo_type=AccountCRUDRepository)),
9594
) -> AccountInResponse:
96-
9795
account_update = AccountInUpdate(username=update_username, email=update_email, password=update_password)
9896
try:
9997
updated_db_account = await account_repo.update_account_by_id(id=query_id, account_update=account_update)

backend/src/api/routes/authentication.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ async def signup(
2323
account_create: AccountInCreate,
2424
account_repo: AccountCRUDRepository = fastapi.Depends(get_repository(repo_type=AccountCRUDRepository)),
2525
) -> AccountInResponse:
26-
2726
try:
2827
await account_repo.is_username_taken(username=account_create.username)
2928
await account_repo.is_email_taken(email=account_create.email)
@@ -59,7 +58,6 @@ async def signin(
5958
account_login: AccountInLogin,
6059
account_repo: AccountCRUDRepository = fastapi.Depends(get_repository(repo_type=AccountCRUDRepository)),
6160
) -> AccountInResponse:
62-
6361
try:
6462
db_account = await account_repo.read_user_by_password_authentication(account_login=account_login)
6563

backend/src/config/settings/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class BackendBaseSettings(pydantic.BaseSettings):
11-
1211
TITLE: str = "DAPSQL FARN-Stack Template Application"
1312
VERSION: str = "0.1.0"
1413
TIMEZONE: str = "UTC"
@@ -72,7 +71,6 @@ class BackendBaseSettings(pydantic.BaseSettings):
7271
JWT_ALGORITHM: str = decouple.config("JWT_ALGORITHM", cast=str) # type: ignore
7372

7473
class Config(pydantic.BaseConfig):
75-
7674
case_sensitive: bool = True
7775
env_file: str = f"{str(ROOT_DIR)}/.env"
7876
validate_assignment: bool = True

backend/src/config/settings/development.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class BackendDevSettings(BackendBaseSettings):
6-
76
DESCRIPTION: str | None = "Development Environment."
87
DEBUG: bool = True
98
ENVIRONMENT: Environment = Environment.DEVELOPMENT

backend/src/config/settings/production.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33

44

55
class BackendProdSettings(BackendBaseSettings):
6-
76
DESCRIPTION: str | None = "Production Environment."
87
ENVIRONMENT: Environment = Environment.PRODUCTION

backend/src/config/settings/staging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44

55
class BackendStageSettings(BackendBaseSettings):
6-
76
DESCRIPTION: str | None = "Test Environment."
87
DEBUG: bool = True
98
ENVIRONMENT: Environment = Environment.STAGING

backend/src/models/schemas/jwt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class JWToken(pydantic.BaseModel):
7-
87
exp: datetime.datetime
98
sub: str
109

backend/src/repository/crud/account.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ async def update_account_by_id(self, id: int, account_update: AccountInUpdate) -
105105
return update_account # type: ignore
106106

107107
async def delete_account_by_id(self, id: int) -> str:
108-
109108
select_stmt = sqlalchemy.select(Account).where(Account.id == id)
110109
query = await self.async_session.execute(statement=select_stmt)
111110
delete_account = query.scalar()

backend/tests/conftest.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,15 @@ def backend_test_app() -> fastapi.FastAPI:
1717

1818
@pytest.fixture(name="initialize_backend_test_application")
1919
async def initialize_backend_test_application(backend_test_app: fastapi.FastAPI) -> fastapi.FastAPI: # type: ignore
20-
2120
async with asgi_lifespan.LifespanManager(backend_test_app):
22-
2321
yield backend_test_app
2422

2523

2624
@pytest.fixture(name="async_client")
2725
async def async_client(initialize_backend_test_application: fastapi.FastAPI) -> httpx.AsyncClient: # type: ignore
28-
2926
async with httpx.AsyncClient(
3027
app=initialize_backend_test_application,
3128
base_url="http://testserver",
3229
headers={"Content-Type": "application/json"},
3330
) as client:
34-
3531
yield client

0 commit comments

Comments
 (0)