Move scipy-imported files to scipy/ subdir (#153)

So I can exclude it from mypy.
pull/357/head
nyanpasu64 2019-01-25 19:27:46 -08:00 zatwierdzone przez GitHub
rodzic dbd1f7c4ec
commit e3cddd7e69
10 zmienionych plików z 7 dodań i 9 usunięć

Wyświetl plik

@ -1,2 +1,2 @@
[run]
omit = *utils/scipy_*
omit = *utils/scipy/*

Wyświetl plik

@ -4,4 +4,4 @@ repos:
hooks:
- id: black
language_version: python3.6
exclude: 'utils/scipy_'
exclude: 'utils/scipy/'

Wyświetl plik

@ -5,8 +5,8 @@ from typing import TYPE_CHECKING, Type, Tuple, Optional, ClassVar
import attr
import numpy as np
import corrscope.utils.scipy_signal as signal
import corrscope.utils.scipy_windows as windows
import corrscope.utils.scipy.signal as signal
import corrscope.utils.scipy.windows as windows
from corrscope.config import KeywordAttrs, CorrError, Alias, CorrWarning
from corrscope.util import find, obj_name
from corrscope.utils.windows import midpad, leftpad

Wyświetl plik

@ -6,7 +6,7 @@ from typing import Union, List
import numpy as np
import corrscope.utils.scipy_wavfile as wavfile
import corrscope.utils.scipy.wavfile as wavfile
from corrscope.config import CorrError, CorrWarning, TypedEnumDump
FLOAT = np.single

Wyświetl plik

@ -42,7 +42,7 @@ html = 'scripts:html'
[tool.black]
line-length = 88
py36 = true
exclude = 'utils/scipy_'
exclude = 'utils/scipy/'
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

Wyświetl plik

@ -1,15 +1,13 @@
import warnings
from typing import Sequence
from hypothesis import given
import hypothesis.strategies as hs
import numpy as np
from numpy.testing import assert_allclose
import pytest
from delayed_assert import expect, assert_expectations
from corrscope.config import CorrError
from corrscope.utils.scipy_wavfile import WavFileWarning
from corrscope.utils.scipy.wavfile import WavFileWarning
from corrscope.wave import Wave, Flatten
prefix = "tests/wav-formats/"