Format with Black and isort

This commit is contained in:
Hugo van Kemenade 2020-09-11 23:47:42 +03:00
parent 2d570b97ff
commit 0f96fe58b1
9 changed files with 73 additions and 66 deletions

View file

@ -6,7 +6,7 @@ repos:
args: ["--py3-plus"] args: ["--py3-plus"]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 19.10b0 rev: 20.8b1
hooks: hooks:
- id: black - id: black
args: ["--target-version", "py35"] args: ["--target-version", "py35"]
@ -15,7 +15,7 @@ repos:
types: [] types: []
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
rev: 5.5.1 rev: 5.5.2
hooks: hooks:
- id: isort - id: isort

View file

@ -2,9 +2,10 @@
""" """
Integration (not unit) tests for pylast.py Integration (not unit) tests for pylast.py
""" """
import pylast
import pytest import pytest
import pylast
from .test_pylast import WRITE_TEST, TestPyLastWithLastFm from .test_pylast import WRITE_TEST, TestPyLastWithLastFm

View file

@ -2,9 +2,10 @@
""" """
Integration (not unit) tests for pylast.py Integration (not unit) tests for pylast.py
""" """
import pylast
from flaky import flaky from flaky import flaky
import pylast
from .test_pylast import PyLastTestCase, load_secrets from .test_pylast import PyLastTestCase, load_secrets

View file

@ -5,9 +5,10 @@ Integration (not unit) tests for pylast.py
import re import re
import time import time
import pylast
import pytest import pytest
import pylast
from .test_pylast import WRITE_TEST, TestPyLastWithLastFm from .test_pylast import WRITE_TEST, TestPyLastWithLastFm

View file

@ -6,10 +6,11 @@ import os
import sys import sys
import time import time
import pylast
import pytest import pytest
from flaky import flaky from flaky import flaky
import pylast
WRITE_TEST = sys.version_info[:2] == (3, 8) WRITE_TEST = sys.version_info[:2] == (3, 8)

View file

@ -4,9 +4,10 @@ Integration (not unit) tests for pylast.py
""" """
import time import time
import pylast
import pytest import pytest
import pylast
from .test_pylast import WRITE_TEST, TestPyLastWithLastFm from .test_pylast import WRITE_TEST, TestPyLastWithLastFm

View file

@ -8,9 +8,10 @@ import os
import re import re
import warnings import warnings
import pylast
import pytest import pytest
import pylast
from .test_pylast import TestPyLastWithLastFm from .test_pylast import TestPyLastWithLastFm

View file

@ -1,8 +1,9 @@
from unittest import mock from unittest import mock
import pylast
import pytest import pytest
import pylast
def mock_network(): def mock_network():
return mock.Mock(_get_ws_auth=mock.Mock(return_value=("", "", ""))) return mock.Mock(_get_ws_auth=mock.Mock(return_value=("", "", "")))