From be5cdc1c4a9e236ec4351f1cd72cb6e4b7f79fc4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 16:32:18 +0000 Subject: [PATCH 1/2] [pre-commit.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.16.2 → v0.16.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.16.2...v0.16.6) - [github.com/PyCQA/bandit: 1.7.9 → 1.9.4](https://github.com/PyCQA/bandit/compare/1.7.9...1.9.4) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af3eb03..ef5cccc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.16.2 + rev: v0.16.6 hooks: # Run the linter. - id: ruff-check @@ -55,7 +55,7 @@ repos: # - id: codespell - repo: https://github.com/PyCQA/bandit - rev: 1.7.9 + rev: 1.9.4 hooks: - id: bandit args: ["-c", "pyproject.toml"] From 150d2416da38ce1d29e0b0a680d63820fb8c2217 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Sep 2026 16:34:18 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index a69c894..3eaf57d 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ that would otherwise have to implement these methods individually. ```python import biocutils + biocutils.match(["A", "C", "E"], ["A", "B", "C", "D", "E"]) ## [0, 2, 4] ``` @@ -36,6 +37,7 @@ biocutils.match(["A", "C", "E"], ["A", "B", "C", "D", "E"]) ```python import biocutils + biocutils.factorize(["A", "B", "B", "A", "C", "D", "C", "D"]) ## (['A', 'B', 'C', 'D'], [0, 1, 1, 0, 2, 3, 2, 3]) ``` @@ -44,6 +46,7 @@ biocutils.factorize(["A", "B", "B", "A", "C", "D", "C", "D"]) ```python import biocutils + biocutils.intersect(["A", "B", "C", "D"], ["D", "A", "E"]) ## ['A', 'D'] ``` @@ -52,6 +55,7 @@ biocutils.intersect(["A", "B", "C", "D"], ["D", "A", "E"]) ```python import biocutils + biocutils.union(["A", "B", "C", "D"], ["D", "A", "E"]) ## ['A', 'B', 'C', 'D', 'E'] ``` @@ -60,10 +64,12 @@ biocutils.union(["A", "B", "C", "D"], ["D", "A", "E"]) ```python import biocutils + biocutils.subset(["A", "B", "C", "D", "E"], [0, 2, 4]) ## ['A', 'C', 'E'] import numpy as np + y = np.array([10, 20, 30, 40, 50]) biocutils.subset(y, [0, 2, 4]) ## array([10, 30, 50])