Skip to content

Commit 69dbfd9

Browse files
committed
Fix lints
These seem to have managed to escape the CI checks since the previously merged PR was based on master commit which did not include the checks.
1 parent 826783d commit 69dbfd9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

beetsplug/convert.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def get_format(fmt=None):
8484

8585
return (command.encode("utf-8"), extension.encode("utf-8"))
8686

87+
8788
def in_no_convert(item: Item) -> bool:
8889
no_convert_query = config["convert"]["no_convert"].as_str()
8990

@@ -92,7 +93,8 @@ def in_no_convert(item: Item) -> bool:
9293
return query.match(item)
9394
else:
9495
return False
95-
96+
97+
9698
def should_transcode(item, fmt):
9799
"""Determine whether the item should be transcoded as part of
98100
conversion (i.e., its bitrate is high or it has the wrong format).

test/plugins/test_convert.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
import re
1919
import sys
2020
import unittest
21-
import pytest
2221

22+
import pytest
2323
from mediafile import MediaFile
2424

2525
from beets import util
26-
from beetsplug import convert
2726
from beets.library import Item
2827
from beets.test import _common
2928
from beets.test.helper import (
@@ -34,6 +33,7 @@
3433
control_stdin,
3534
)
3635
from beets.util import bytestring_path, displayable_path
36+
from beetsplug import convert
3737

3838

3939
def shell_quote(text):
@@ -352,7 +352,6 @@ class TestNoConvert:
352352
("bitrate:320 , format:ogg", True),
353353
],
354354
)
355-
356355
def test_no_convert_skip(self, config_value, should_skip):
357356
item = Item(format="ogg", bitrate=256)
358357
convert.config["convert"]["no_convert"] = config_value

0 commit comments

Comments
 (0)