Skip to content

Commit

Permalink
Run ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
naglis committed Nov 13, 2024
1 parent 878fdd0 commit b997003
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 7 additions & 3 deletions aeneas/ffmpegwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,8 @@ def convert(
try:
proc = subprocess.run(
arguments,
stdout=subprocess.PIPE,
capture_output=True,
stdin=subprocess.PIPE,
stderr=subprocess.PIPE,
check=True,
)
except OSError as exc:
Expand All @@ -233,7 +232,12 @@ def convert(
FFMPEGPathError,
)
except subprocess.CalledProcessError as e:
self.log_exc("ffmpeg returned non-zero status %r: %s" % (e.returncode, e.stderr.decode("utf-8", "replace")), critical=True, raise_type=OSError)
self.log_exc(
"ffmpeg returned non-zero status %r: %s"
% (e.returncode, e.stderr.decode("utf-8", "replace")),
critical=True,
raise_type=OSError,
)

self.log("Call completed")

Expand Down
6 changes: 5 additions & 1 deletion aeneas/tests/test_vad.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ def perform(self, input_file_path, speech_length, nonspeech_length):

def test_compute_vad(self):
for f in self.FILES:
with self.subTest(path=f["path"], speech_length=f["speech_length"], nonspeech_length=f["nonspeech_length"]):
with self.subTest(
path=f["path"],
speech_length=f["speech_length"],
nonspeech_length=f["nonspeech_length"],
):
self.perform(f["path"], f["speech_length"], f["nonspeech_length"])

def test_not_existing(self):
Expand Down

0 comments on commit b997003

Please sign in to comment.