Skip to content

Commit f06252b

Browse files
committed
fix: sync ruff version (0.15.0) between pre-commit and uv
1 parent 77e8066 commit f06252b

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dev = [
3232
"pytest>=7.0.0",
3333
"pytest-cov>=4.0.0",
3434
"pytest-mock>=3.12.0",
35-
"ruff>=0.8.0",
35+
"ruff>=0.15.0",
3636
"pre-commit>=3.0.0",
3737
]
3838

src/ytstudio/commands/comments.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def fetch_comments(data_service, video_id: str, limit: int = 100) -> list[Commen
5858
author=c["author"],
5959
text=c["text"],
6060
likes=c["likes"],
61-
published_at=c["published"].isoformat() if hasattr(c["published"], "isoformat") else c["published"],
61+
published_at=c["published"].isoformat()
62+
if hasattr(c["published"], "isoformat")
63+
else c["published"],
6264
)
6365
for c in DEMO_COMMENTS[:limit]
6466
]

src/ytstudio/commands/videos.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,12 @@ def list_videos(
242242
page_token: str = typer.Option(None, "--page-token", "-p", help="Page token for pagination"),
243243
sort: str = typer.Option("date", "--sort", "-s", help="Sort by: date, views, likes"),
244244
output: str = typer.Option("table", "--output", "-o", help="Output format: table, json, csv"),
245-
audio_lang: str = typer.Option(None, "--audio-lang", help="Filter by audio language (e.g., en, es)"),
246-
meta_lang: str = typer.Option(None, "--meta-lang", help="Filter by metadata language (e.g., en, es)"),
245+
audio_lang: str = typer.Option(
246+
None, "--audio-lang", help="Filter by audio language (e.g., en, es)"
247+
),
248+
meta_lang: str = typer.Option(
249+
None, "--meta-lang", help="Filter by metadata language (e.g., en, es)"
250+
),
247251
has_localization: str = typer.Option(
248252
None, "--has-localization", help="Filter by available translation (e.g., en, es)"
249253
),

src/ytstudio/demo.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@
3030
"description": "Learn the basics of TypeScript in 100 seconds...",
3131
"defaultLanguage": "en",
3232
"defaultAudioLanguage": "en",
33-
"localizations": {"en": {"title": "TypeScript in 100 Seconds", "description": "Learn the basics of TypeScript in 100 seconds..."}},
33+
"localizations": {
34+
"en": {
35+
"title": "TypeScript in 100 Seconds",
36+
"description": "Learn the basics of TypeScript in 100 seconds...",
37+
}
38+
},
3439
},
3540
{
3641
"id": "lHhRhPV--G0",

0 commit comments

Comments
 (0)