From c81001548f739ec8d0d7c16cdab21ac53c0ffaf3 Mon Sep 17 00:00:00 2001 From: jorenham Date: Thu, 17 Oct 2024 15:08:33 +0200 Subject: [PATCH 1/2] bump `basedpyright` to `1.19.0` and `tox` to `4.23.0` --- poetry.lock | 18 +++++++----------- pyproject.toml | 7 ++----- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/poetry.lock b/poetry.lock index f3d2e484..4b7c2f3f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -50,13 +50,13 @@ reports = ["lxml"] [[package]] name = "basedpyright" -version = "1.18.4" +version = "1.19.0" description = "static type checking for Python (but based)" optional = false python-versions = ">=3.8" files = [ - {file = "basedpyright-1.18.4-py3-none-any.whl", hash = "sha256:0cb4e192f66bfee9e8a34ce8c35f62e71c316b1c59a48e8d46c66dff268e19b4"}, - {file = "basedpyright-1.18.4.tar.gz", hash = "sha256:d32f8c3abab50792a61039ff8ff5a2412b68d1c13b101d4b63756cb773d9828f"}, + {file = "basedpyright-1.19.0-py3-none-any.whl", hash = "sha256:78f2fc2e5d3f2cc1c4dfae351f9d45aa52917bfb0e9a103579a4bb005f097bec"}, + {file = "basedpyright-1.19.0.tar.gz", hash = "sha256:847d9c75ca691c9ff0661c800e830c23b32c65793b97a4386db9cbf52c1a168a"}, ] [package.dependencies] @@ -539,13 +539,13 @@ files = [ [[package]] name = "tox" -version = "4.21.2" +version = "4.23.0" description = "tox is a generic virtualenv management and test command line tool" optional = false python-versions = ">=3.8" files = [ - {file = "tox-4.21.2-py3-none-any.whl", hash = "sha256:13d996adcd792e7c82994b0e116d85efd84f0c6d185254d83d156f73f86b2038"}, - {file = "tox-4.21.2.tar.gz", hash = "sha256:49381ff102296753e378fa5ff30e42a35e695f149b4dbf8a2c49d15fdb5797b2"}, + {file = "tox-4.23.0-py3-none-any.whl", hash = "sha256:46da40afb660e46238c251280eb910bdaf00b390c7557c8e4bb611f422e9db12"}, + {file = "tox-4.23.0.tar.gz", hash = "sha256:a6bd7d54231d755348d3c3a7b450b5bf6563833716d1299a1619587a1b77a3bf"}, ] [package.dependencies] @@ -561,10 +561,6 @@ tomli = {version = ">=2.0.1", markers = "python_version < \"3.11\""} typing-extensions = {version = ">=4.12.2", markers = "python_version < \"3.11\""} virtualenv = ">=20.26.6" -[package.extras] -docs = ["furo (>=2024.8.6)", "sphinx (>=8.0.2)", "sphinx-argparse-cli (>=1.18.2)", "sphinx-autodoc-typehints (>=2.4.4)", "sphinx-copybutton (>=0.5.2)", "sphinx-inline-tabs (>=2023.4.21)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=24.8)"] -testing = ["build[virtualenv] (>=1.2.2)", "covdefaults (>=2.3)", "detect-test-pollution (>=1.2)", "devpi-process (>=1.0.2)", "diff-cover (>=9.2)", "distlib (>=0.3.8)", "flaky (>=3.8.1)", "hatch-vcs (>=0.4)", "hatchling (>=1.25)", "psutil (>=6)", "pytest (>=8.3.3)", "pytest-cov (>=5)", "pytest-mock (>=3.14)", "pytest-xdist (>=3.6.1)", "re-assert (>=1.1)", "setuptools (>=75.1)", "time-machine (>=2.15)", "wheel (>=0.44)"] - [[package]] name = "typing-extensions" version = "4.12.2" @@ -599,4 +595,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess [metadata] lock-version = "2.0" python-versions = "^3.10.1" -content-hash = "9c2e43ff46bf6606c8e15e82ca3a839f71ec39e0d08e04da2759ea5e6409e9f6" +content-hash = "c7730018b76f7bd1769e77ce19993bbdd455d60365436df871e278bc5ca4f9d3" diff --git a/pyproject.toml b/pyproject.toml index fb29feaf..fee98519 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,13 +31,13 @@ optype = "^0.6.1" [tool.poetry.group.lint.dependencies] basedmypy = "^2.6.0" -basedpyright = "^1.18.4" +basedpyright = "^1.19.0" ruff = "^0.6.9" [tool.poetry.group.dev.dependencies] poethepoet = "^0.29.0" pre-commit = "^4.0.1" -tox = "^4.21.2" +tox = "^4.23.0" [tool.poe.executor] type = "poetry" @@ -160,8 +160,6 @@ select = [ [tool.ruff.lint.flake8-import-conventions] banned-from = [ "numpy", - "numpy.dtypes", - "numpy.exceptions", "numpy.emath", "numpy.fft", "numpy.linalg", @@ -171,7 +169,6 @@ banned-from = [ "numpy.rec", "numpy.typing", "numpy.strings", - "optype", "optype.numpy", "optype.typing", ] From ce707339f9febba754fa171766cdbac0f920d8c5 Mon Sep 17 00:00:00 2001 From: jorenham Date: Thu, 17 Oct 2024 15:12:06 +0200 Subject: [PATCH 2/2] remove unused `noqa` directive --- scipy-stubs/_lib/_util.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scipy-stubs/_lib/_util.pyi b/scipy-stubs/_lib/_util.pyi index 8f1dc338..889dc9aa 100644 --- a/scipy-stubs/_lib/_util.pyi +++ b/scipy-stubs/_lib/_util.pyi @@ -8,7 +8,7 @@ import numpy as np import numpy.typing as npt import optype.numpy as onpt from numpy._typing import _ArrayLikeInt -from numpy.exceptions import ( # noqa: ICN003 +from numpy.exceptions import ( AxisError as AxisError, ComplexWarning as ComplexWarning, DTypePromotionError as DTypePromotionError,