From 08bfa01aeecce86964600472e5d69736f0cf5dbc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 18:04:10 +0000 Subject: [PATCH 1/2] ci: pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.14 → v0.15.15](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.14...v0.15.15) - [github.com/tox-dev/pyproject-fmt: v2.21.2 → v2.23.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.21.2...v2.23.0) - [github.com/biomejs/pre-commit: v2.4.15 → v2.4.16](https://github.com/biomejs/pre-commit/compare/v2.4.15...v2.4.16) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0bf87f0..32cf75d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: - id: trailing-whitespace - id: no-commit-to-branch - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.14 + rev: v0.15.15 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] @@ -14,11 +14,11 @@ repos: args: [--preview, --select=CPY] - id: ruff-format - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.21.2 + rev: v2.23.0 hooks: - id: pyproject-fmt - repo: https://github.com/biomejs/pre-commit - rev: v2.4.15 + rev: v2.4.16 hooks: - id: biome-format - repo: https://github.com/pre-commit/mirrors-mypy From eccc35501167575c6505615367bc80dfa3c3d521 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 18:05:07 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 49 ++++++++++++++++++++++++------------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3684e89..0c4ebc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,35 +59,34 @@ test-min = [ ] [tool.hatch] -build.targets.wheel.packages = [ "src/testing", "src/fast_array_utils" ] +# TODO: re-activate incl. `dynamic = [ "description", "readme", ... ]` after https://github.com/pypa/hatch/issues/2252 +# metadata.hooks.docstring-description = {} +# metadata.hooks.fancy-pypi-readme.content-type = "text/x-rst" +# metadata.hooks.fancy-pypi-readme.fragments = [ { path = "README.rst", start-after = ".. begin" } ] +version.source = "vcs" +version.raw-options = { local_scheme = "no-local-version" } # be able to publish dev version +build.targets.wheel.packages = [ "src/fast_array_utils", "src/testing" ] envs.default.installer = "uv" -envs.docs.dependency-groups = [ "doc" ] envs.docs.scripts.build = "sphinx-build -M html docs docs/_build" envs.docs.scripts.clean = "git clean -fdX docs" envs.docs.scripts.open = "python -m webbrowser -t docs/_build/html/index.html" -envs.hatch-test.default-args = [] -envs.hatch-test.dependency-groups = [ "test-min" ] -envs.hatch-test.extra-dependencies = [ "ipykernel", "ipycytoscape" ] +envs.docs.dependency-groups = [ "doc" ] +envs.hatch-test.extra-dependencies = [ "ipycytoscape", "ipykernel" ] envs.hatch-test.env-vars.CODSPEED_PROFILE_FOLDER = "test-data/codspeed" -envs.hatch-test.overrides.matrix.extras.dependency-groups = [ - { if = [ "full" ], value = "test" }, -] -envs.hatch-test.overrides.matrix.resolution.dependencies = [ - # TODO: move to `min-reqs` feature once this is fixed: https://github.com/tlambert03/hatch-min-requirements/issues/11 - { if = [ "lowest" ], value = "numpy==2" }, - { if = [ "lowest" ], value = "dask==2023.6.1" }, - { if = [ "lowest" ], value = "scipy==1.13.0" }, -] envs.hatch-test.matrix = [ { python = [ "3.14", "3.12" ], extras = [ "full", "min" ] }, { python = [ "3.12" ], extras = [ "full" ], resolution = [ "lowest" ] }, ] -# TODO: re-activate incl. `dynamic = [ "description", "readme", ... ]` after https://github.com/pypa/hatch/issues/2252 -# metadata.hooks.docstring-description = {} -# metadata.hooks.fancy-pypi-readme.content-type = "text/x-rst" -# metadata.hooks.fancy-pypi-readme.fragments = [ { path = "README.rst", start-after = ".. begin" } ] -version.source = "vcs" -version.raw-options = { local_scheme = "no-local-version" } # be able to publish dev version +envs.hatch-test.overrides.matrix.extras.dependency-groups = [ + { value = "test", if = [ "full" ] }, +] +envs.hatch-test.overrides.matrix.resolution.dependencies = [ + { value = "numpy==2", if = [ "lowest" ] }, + { value = "dask==2023.6.1", if = [ "lowest" ] }, + { value = "scipy==1.13.0", if = [ "lowest" ] }, +] +envs.hatch-test.default-args = [] +envs.hatch-test.dependency-groups = [ "test-min" ] [tool.uv] override-dependencies = [ "sphinx>=9.0.1" ] @@ -136,11 +135,11 @@ lint.pydocstyle.convention = "numpy" lint.future-annotations = true [tool.mypy] -strict = true +mypy_path = [ "$MYPY_CONFIG_FILE_DIR/typings", "$MYPY_CONFIG_FILE_DIR/src" ] +explicit_package_bases = true # https://github.com/dask/dask/issues/8853 implicit_reexport = true -explicit_package_bases = true -mypy_path = [ "$MYPY_CONFIG_FILE_DIR/typings", "$MYPY_CONFIG_FILE_DIR/src" ] +strict = true [tool.pyright] stubPath = "./typings" @@ -150,14 +149,12 @@ reportPrivateUsage = false environment.extra-paths = [ "./typings" ] [tool.pytest] -strict = true addopts = [ "--import-mode=importlib", "--doctest-modules", "--doctest-plus", "--pyargs", ] -testpaths = [ "./tests", "fast_array_utils" ] doctest_subpackage_requires = [ "src/fast_array_utils/conv/scipy/* = scipy", "src/fast_array_utils/conv/scipy/_to_dense.py = numba", @@ -169,6 +166,8 @@ doctest_subpackage_requires = [ markers = [ "benchmark: marks tests as benchmark (to run with `--codspeed`)", ] +strict = true +testpaths = [ "./tests", "fast_array_utils" ] [tool.coverage] run.data_file = "test-data/.coverage"