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] [run]
omit = *utils/scipy_* omit = *utils/scipy/*

Wyświetl plik

@ -4,4 +4,4 @@ repos:
hooks: hooks:
- id: black - id: black
language_version: python3.6 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 attr
import numpy as np import numpy as np
import corrscope.utils.scipy_signal as signal import corrscope.utils.scipy.signal as signal
import corrscope.utils.scipy_windows as windows import corrscope.utils.scipy.windows as windows
from corrscope.config import KeywordAttrs, CorrError, Alias, CorrWarning from corrscope.config import KeywordAttrs, CorrError, Alias, CorrWarning
from corrscope.util import find, obj_name from corrscope.util import find, obj_name
from corrscope.utils.windows import midpad, leftpad from corrscope.utils.windows import midpad, leftpad

Wyświetl plik

@ -6,7 +6,7 @@ from typing import Union, List
import numpy as np 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 from corrscope.config import CorrError, CorrWarning, TypedEnumDump
FLOAT = np.single FLOAT = np.single

Wyświetl plik

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

Wyświetl plik

@ -1,15 +1,13 @@
import warnings import warnings
from typing import Sequence from typing import Sequence
from hypothesis import given
import hypothesis.strategies as hs
import numpy as np import numpy as np
from numpy.testing import assert_allclose from numpy.testing import assert_allclose
import pytest import pytest
from delayed_assert import expect, assert_expectations from delayed_assert import expect, assert_expectations
from corrscope.config import CorrError 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 from corrscope.wave import Wave, Flatten
prefix = "tests/wav-formats/" prefix = "tests/wav-formats/"