Skip to content

Commit 5fee804

Browse files
committed
🎨 포매팅 적용 및 make check로 CI 일괄 적용
1 parent 26ed2bb commit 5fee804

6 files changed

Lines changed: 38 additions & 11 deletions

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,5 @@ jobs:
1818
- name: Install dependencies
1919
run: uv sync --group dev
2020

21-
- name: Ruff lint
22-
run: uv run ruff check .
23-
24-
- name: Ruff format check
25-
run: uv run ruff format --check .
26-
27-
- name: Mypy type check
28-
run: uv run mypy .
21+
- name: Check
22+
run: make check

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.PHONY: check lint format typecheck test
2+
3+
check: lint format typecheck
4+
5+
lint:
6+
uv run ruff check .
7+
8+
format:
9+
uv run ruff format --check .
10+
11+
typecheck:
12+
uv run mypy .
13+
14+
test:
15+
uv run pytest
16+
17+
fix:
18+
uv run ruff check --fix .
19+
uv run ruff format .

app/core/security.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55

66
def verify_password(plain: str, hashed: str) -> bool:
7-
return pwd_context.verify(plain, hashed) # type: ignore[no-any-return]
7+
return pwd_context.verify(plain, hashed)
88

99

1010
def get_password_hash(password: str) -> str:
11-
return pwd_context.hash(password) # type: ignore[no-any-return]
11+
return pwd_context.hash(password)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dev = [
2121
"pytest>=9.0.3",
2222
"pytest-asyncio>=1.4.0",
2323
"ruff>=0.15.16",
24+
"types-passlib>=1.7.7.20260211",
2425
]
2526

2627
[tool.ruff]

tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
from collections.abc import AsyncGenerator
2+
13
import pytest
24
from httpx import ASGITransport, AsyncClient
35

46
from app.main import app
57

68

79
@pytest.fixture
8-
async def client() -> AsyncClient:
10+
async def client() -> AsyncGenerator[AsyncClient, None]:
911
async with AsyncClient(
1012
transport=ASGITransport(app=app), base_url="http://test"
1113
) as ac:

uv.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)