Skip to content

Commit

Permalink
Format with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Mar 9, 2024
1 parent 260f1e1 commit 158e94e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions tests/core/test_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,14 @@ def test_lookup_batches_uris(self):
"dummy2:b": [track4],
}

result = self.core.library.lookup(uris=[
"dummy1:a",
"dummy1:b",
"dummy2:a",
"dummy2:b",
])
result = self.core.library.lookup(
uris=[
"dummy1:a",
"dummy1:b",
"dummy2:a",
"dummy2:b",
]
)

self.library1.lookup_many.assert_called_once_with(["dummy1:a", "dummy1:b"])
self.library2.lookup_many.assert_called_once_with(["dummy2:a", "dummy2:b"])
Expand Down
12 changes: 7 additions & 5 deletions tests/core/test_tracklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ def test_add_by_uris_looks_up_uris_in_library(self):

tl_tracks = self.core.tracklist.add(uris=[t.uri for t in self.tracks])

self.library.lookup_many.assert_called_with([
"dummy1:a",
"dummy1:b",
"dummy1:c",
])
self.library.lookup_many.assert_called_with(
[
"dummy1:a",
"dummy1:b",
"dummy1:c",
]
)

assert len(tl_tracks) == 3
assert self.tracks[0] == tl_tracks[0].track
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ commands = python -m ruff check .

[testenv:ruff-format]
deps = .[lint]
commands = python -m ruff format .
commands = python -m ruff format --check .

[testenv:ci]
deps =
Expand Down

0 comments on commit 158e94e

Please sign in to comment.