Skip to content

Commit 2d9b037

Browse files
committed
meta: fix remaining linter errors
1 parent 282f465 commit 2d9b037

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

src/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def natural_compare(a: str, b: str) -> int:
247247
if a == b:
248248
return 0
249249

250-
# adapted from https://stackoverflow.com/questions/2545532/python-analog-of-phps-natsort-function-sort-a-list-using-a-natural-order-alg
250+
# adapted from https://stackoverflow.com/questions/2545532
251251
def sort_key(s: str) -> list:
252252
out = []
253253
for x in s:

src/window.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ def on_drag_unhover(self, *args):
330330

331331
def on_drag_drop(self, drop_target, value, *args):
332332
files = value.get_files()
333-
paths = []
334333

335334
self.open_mode = EartagFileManager.LOAD_INSERT
336335
self.load_files_from_paths([f.get_path() for f in files])

tests/backends/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ def backend_read_empty(file, skip_cover=False):
170170
assert not file.has_tag(prop)
171171
except AssertionError:
172172
raise ValueError(
173-
f"example-notags file has {prop} property set to {file.get_property(prop)}; this either means that something is broken in the file, or in the backend."
174-
) # noqa: E501
173+
f"example-notags file has {prop} property set to {file.get_property(prop)}; this either means that something is broken in the file, or in the backend." # noqa: E501
174+
)
175175

176176
assert file.get_property("is_modified") is False
177177
if not skip_cover:

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def pytest_addoption(parser):
1111
parser.addoption(
1212
"--networked_tests",
1313
action="store_true",
14-
help="Enable MusicBrainz and AcoustID test; not recommended unless you're doing development on them",
15-
) # noqa: E501
14+
help="Enable MusicBrainz and AcoustID test; not recommended unless you're doing development on them", # noqa: E501
15+
)
1616

1717

1818
def pytest_runtest_setup(item):

tests/test_musicbrainz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def test_musicbrainz_covers():
113113

114114
@pytest.mark.networked_tests
115115
def test_musicbrainz_file_set(
116-
dummy_file,
117-
): # noqa: F811; flake8 doesn't understand fixtures
116+
dummy_file, # noqa: F811; flake8 doesn't understand fixtures
117+
):
118118
"""Tests the MusicBrainz file wrappers."""
119119

120120
# Test with not enough data

0 commit comments

Comments
 (0)