Skip to content

Commit

Permalink
isort
Browse files Browse the repository at this point in the history
  • Loading branch information
d-dawg78 committed Feb 9, 2023
1 parent 2a3ada9 commit 96d3159
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
3 changes: 2 additions & 1 deletion tests/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
__author__ = "Deezer Research"
__license__ = "MIT License"

from spleeter.__main__ import spleeter
from typer.testing import CliRunner

from spleeter.__main__ import spleeter


def test_version():

Expand Down
1 change: 0 additions & 1 deletion tests/test_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from spleeter.__main__ import evaluate
from spleeter.audio.adapter import AudioAdapter


res_4stems = {
"vocals": {"SDR": 3.25e-05, "SAR": -11.153575, "SIR": -1.3849, "ISR": 2.75e-05},
"drums": {"SDR": -0.079505, "SAR": -15.7073575, "SIR": -4.972755, "ISR": 0.0013575},
Expand Down
10 changes: 5 additions & 5 deletions tests/test_ffmpeg_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
from os.path import join
from tempfile import TemporaryDirectory

from spleeter import SpleeterError
from spleeter.audio.adapter import AudioAdapter
from spleeter.audio.ffmpeg import FFMPEGProcessAudioAdapter
import ffmpeg
import numpy as np

# pyright: reportMissingImports=false
# pylint: disable=import-error
from pytest import fixture, raises

import numpy as np
import ffmpeg
from spleeter import SpleeterError
from spleeter.audio.adapter import AudioAdapter
from spleeter.audio.ffmpeg import FFMPEGProcessAudioAdapter

# pylint: enable=import-error

Expand Down
5 changes: 2 additions & 3 deletions tests/test_separator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
__license__ = "MIT License"

import itertools
from os.path import splitext, basename, exists, join
from os.path import basename, exists, join, splitext
from tempfile import TemporaryDirectory

import pytest
import numpy as np

import pytest
import tensorflow as tf

from spleeter import SpleeterError
Expand Down
6 changes: 2 additions & 4 deletions tests/test_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@

import json
import os

from os import makedirs
from os.path import join
from tempfile import TemporaryDirectory

import numpy as np
import pandas as pd

from spleeter.audio.adapter import AudioAdapter
from spleeter.__main__ import spleeter
from typer.testing import CliRunner

from spleeter.__main__ import spleeter
from spleeter.audio.adapter import AudioAdapter

TRAIN_CONFIG = {
"mix_name": "mix",
Expand Down

0 comments on commit 96d3159

Please sign in to comment.