Replace Flake8 with Ruff

This commit is contained in:
Hugo van Kemenade 2024-02-04 21:06:19 +02:00
parent a28dea1158
commit 36d89a69e8
15 changed files with 71 additions and 36 deletions

View file

@ -2,6 +2,8 @@
"""
Integration (not unit) tests for pylast.py
"""
from __future__ import annotations
import pylast
from .test_pylast import TestPyLastWithLastFm

View file

@ -2,6 +2,8 @@
"""
Integration (not unit) tests for pylast.py
"""
from __future__ import annotations
import pytest
import pylast

View file

@ -2,6 +2,8 @@
"""
Integration (not unit) tests for pylast.py
"""
from __future__ import annotations
import pylast
from .test_pylast import TestPyLastWithLastFm

View file

@ -2,6 +2,8 @@
"""
Integration (not unit) tests for pylast.py
"""
from __future__ import annotations
import pylast
from .test_pylast import TestPyLastWithLastFm

View file

@ -2,6 +2,8 @@
"""
Integration (not unit) tests for pylast.py
"""
from __future__ import annotations
from flaky import flaky
import pylast

View file

@ -1,6 +1,9 @@
"""
Integration (not unit) tests for pylast.py
"""
from __future__ import annotations
import re
import time

View file

@ -2,6 +2,8 @@
"""
Integration (not unit) tests for pylast.py
"""
from __future__ import annotations
import os
import time

View file

@ -2,6 +2,8 @@
"""
Integration (not unit) tests for pylast.py
"""
from __future__ import annotations
import pylast
from .test_pylast import TestPyLastWithLastFm

View file

@ -1,6 +1,9 @@
"""
Integration (not unit) tests for pylast.py
"""
from __future__ import annotations
import time
import pytest

View file

@ -2,6 +2,8 @@
"""
Integration (not unit) tests for pylast.py
"""
from __future__ import annotations
import calendar
import datetime as dt
import inspect

View file

@ -1,3 +1,5 @@
from __future__ import annotations
from unittest import mock
import pytest
@ -25,7 +27,7 @@ def test_get_cache_key(artist) -> None:
@pytest.mark.parametrize("obj", [pylast.Artist("B\xe9l", mock_network())])
def test_cast_and_hash(obj) -> None:
assert type(str(obj)) is str
assert isinstance(str(obj), str)
assert isinstance(hash(obj), int)