From 015e3a5d5a8c567a04c1915fd8a49a98d4410fdb Mon Sep 17 00:00:00 2001 From: Kevin Sheppard Date: Tue, 16 Apr 2024 10:43:17 +0100 Subject: [PATCH] STYL: Fix linting issues --- appveyor.yml | 33 --------------------------------- arch/utility/array.py | 6 ++++-- arch/utility/timeseries.py | 9 ++++++--- 3 files changed, 10 insertions(+), 38 deletions(-) delete mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 951eca2a13..0000000000 --- a/appveyor.yml +++ /dev/null @@ -1,33 +0,0 @@ -skip_tags: true -clone_depth: 50 - -os: Visual Studio 2017 - -environment: - matrix: - - PY_MAJOR_VER: 3 - PYTHON_ARCH: "x86" - - PY_MAJOR_VER: 3 - PYTHON_ARCH: "x86_64" - -platform: - - x64 - -build_script: - - cmd: SET MKL_NUM_THREADS=1 - - cmd: SET NUMEXPR_NUM_THREADS=1 - - cmd: SET OMP_NUM_THREADS=1 - - cmd: SET OPENBLAS_NUM_THREADS=1 - - ps: Start-FileDownload "https://repo.continuum.io/miniconda/Miniconda$env:PY_MAJOR_VER-latest-Windows-$env:PYTHON_ARCH.exe" C:\Miniconda.exe; echo "Finished downloading miniconda" - - cmd: C:\Miniconda.exe /S /D=C:\Py - - cmd: SET PATH=C:\Py;C:\Py\Scripts;C:\Py\Library\bin;%PATH% - - cmd: conda config --set always_yes yes - - cmd: conda update conda --quiet - - cmd: python -m pip install --upgrade pip - - cmd: conda install numpy cython pandas scipy patsy statsmodels matplotlib nbconvert nbformat pip pyyaml pyqt pyparsing --quiet - - cmd: conda install -c numba numba llvmlite - - cmd: pip install "pytest>=7,<7.1" pytest-xdist!=1.30 property_cached - - cmd: pip install -e . - -test_script: - - cmd: pytest -n 2 arch -m "(not slow)" --durations=25 diff --git a/arch/utility/array.py b/arch/utility/array.py index df6fc35a8a..23d9e6e108 100644 --- a/arch/utility/array.py +++ b/arch/utility/array.py @@ -38,7 +38,8 @@ def ensure1d( x: int | float | Sequence[int | float] | ArrayLike, name: Hashable | None, series: Literal[True] = ..., -) -> Series: ... # pragma: no cover +) -> Series: # pragma: no cover + ... # pragma: no cover @overload @@ -46,7 +47,8 @@ def ensure1d( x: int | float | Sequence[int | float] | ArrayLike, name: Hashable | None, series: Literal[False], -) -> np.ndarray: ... # pragma: no cover +) -> np.ndarray: # pragma: no cover + ... # pragma: no cover def ensure1d( diff --git a/arch/utility/timeseries.py b/arch/utility/timeseries.py index 477e32df89..23589170d0 100644 --- a/arch/utility/timeseries.py +++ b/arch/utility/timeseries.py @@ -48,7 +48,8 @@ def add_trend( prepend: bool = ..., nobs: int = ..., has_constant: Literal["raise", "add", "skip"] = ..., -) -> Float64Array: ... # pragma: no cover +) -> Float64Array: # pragma: no cover + ... # pragma: no cover @overload @@ -58,7 +59,8 @@ def add_trend( prepend: bool = ..., nobs: None = ..., has_constant: Literal["raise", "add", "skip"] = ..., -) -> Float64Array: ... # pragma: no cover +) -> Float64Array: # pragma: no cover + ... # pragma: no cover @overload @@ -68,7 +70,8 @@ def add_trend( prepend: bool = ..., nobs: None = ..., has_constant: Literal["raise", "add", "skip"] = ..., -) -> pd.DataFrame: ... # pragma: no cover +) -> pd.DataFrame: # pragma: no cover + ... # pragma: no cover def add_trend(