Skip to content

Commit 6eaca86

Browse files
committed
Run ruff format
1 parent ee86233 commit 6eaca86

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

youtube_transcript_api/formatters.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ class Formatter:
1616

1717
def format_transcript(self, transcript: FetchedTranscript, **kwargs) -> str:
1818
raise NotImplementedError(
19-
"A subclass of Formatter must implement "
20-
"their own .format_transcript() method."
19+
"A subclass of Formatter must implement their own .format_transcript() method."
2120
)
2221

2322
def format_transcripts(self, transcripts: List[FetchedTranscript], **kwargs):
2423
raise NotImplementedError(
25-
"A subclass of Formatter must implement "
26-
"their own .format_transcripts() method."
24+
"A subclass of Formatter must implement their own .format_transcripts() method."
2725
)
2826

2927

@@ -90,8 +88,7 @@ def format_transcripts(self, transcripts: List[FetchedTranscript], **kwargs) ->
9088
class _TextBasedFormatter(TextFormatter):
9189
def _format_timestamp(self, hours: int, mins: int, secs: int, ms: int) -> str:
9290
raise NotImplementedError(
93-
"A subclass of _TextBasedFormatter must implement "
94-
"their own .format_timestamp() method."
91+
"A subclass of _TextBasedFormatter must implement their own .format_timestamp() method."
9592
)
9693

9794
def _format_transcript_header(self, lines: Iterable[str]) -> str:

youtube_transcript_api/proxies.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ def __init__(self, http_url: Optional[str] = None, https_url: Optional[str] = No
7575
"""
7676
if not http_url and not https_url:
7777
raise InvalidProxyConfig(
78-
"GenericProxyConfig requires you to define at least one of the two: "
79-
"http or https"
78+
"GenericProxyConfig requires you to define at least one of the two: http or https"
8079
)
8180
self.http_url = http_url
8281
self.https_url = https_url

youtube_transcript_api/test/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,4 +367,5 @@ def test_get_version_package_not_found(self):
367367
"youtube_transcript_api._cli.version", side_effect=PackageNotFoundError
368368
):
369369
from youtube_transcript_api._cli import get_version
370+
370371
assert get_version() == "unknown"

0 commit comments

Comments
 (0)