Skip to content

Bump the pre-commit-hooks group with 5 updates - #971

Closed
dependabot[bot] wants to merge 2 commits into
developfrom
dependabot/pre_commit/develop/pre-commit-hooks-bb45a0a7bb
Closed

dependabot[bot] wants to merge 2 commits into
developfrom
dependabot/pre_commit/develop/pre-commit-hooks-bb45a0a7bb

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the pre-commit-hooks group with 5 updates:

Package From To
https://github.com/astral-sh/ruff-pre-commit v0.15.15 0.16.4
https://github.com/pre-commit/mirrors-mypy v1.15.0 2.3.1
https://github.com/codingjoe/relint 3.3.1 3.5.0
https://github.com/codespell-project/codespell v2.4.2 2.4.3
https://github.com/rstcheck/rstcheck v6.2.5 6.3.0

Updates https://github.com/astral-sh/ruff-pre-commit from v0.15.15 to 0.16.4

Release notes

Sourced from https://github.com/astral-sh/ruff-pre-commit's releases.

v0.16.4

See: https://github.com/astral-sh/ruff/releases/tag/0.16.4

v0.16.3

See: https://github.com/astral-sh/ruff/releases/tag/0.16.3

v0.16.2

See: https://github.com/astral-sh/ruff/releases/tag/0.16.2

v0.16.1

See: https://github.com/astral-sh/ruff/releases/tag/0.16.1

v0.16.0

See: https://github.com/astral-sh/ruff/releases/tag/0.16.0

v0.15.22

See: https://github.com/astral-sh/ruff/releases/tag/0.15.22

v0.15.21

See: https://github.com/astral-sh/ruff/releases/tag/0.15.21

v0.15.20

See: https://github.com/astral-sh/ruff/releases/tag/0.15.20

v0.15.19

See: https://github.com/astral-sh/ruff/releases/tag/0.15.19

v0.15.18

See: https://github.com/astral-sh/ruff/releases/tag/0.15.18

v0.15.17

See: https://github.com/astral-sh/ruff/releases/tag/0.15.17

v0.15.16

See: https://github.com/astral-sh/ruff/releases/tag/0.15.16

Commits

Updates https://github.com/pre-commit/mirrors-mypy from v1.15.0 to 2.3.1

Commits

Updates https://github.com/codingjoe/relint from 3.3.1 to 3.5.0

Release notes

Sourced from https://github.com/codingjoe/relint's releases.

3.5.0

What's Changed

New Contributors

Full Changelog: codingjoe/relint@3.4.1...3.5.0

3.4.1

What's Changed

Full Changelog: codingjoe/relint@3.4.0...3.4.1

3.4.0

What's Changed

Full Changelog: codingjoe/relint@3.3.1...3.4.0

Commits
  • b1c90df Resolve #114 -- Always wrap code printed to the console (#146)
  • 757bca4 [pre-commit.ci] pre-commit autoupdate
  • c845e27 [pre-commit.ci] pre-commit autoupdate
  • a9c0e38 Bump actions/checkout from 6 to 7
  • fad6d65 Limit allowed tools
  • d5a7f5f Add Skills via Claude plugin
  • 3751a69 [pre-commit.ci] pre-commit autoupdate
  • d36fea4 Revert funding file
  • 49a477b Fix #133 -- Handle git diff mnemonic prefixes (#137)
  • 8ace03a [pre-commit.ci] pre-commit autoupdate
  • Additional commits viewable in compare view

Updates https://github.com/codespell-project/codespell from v2.4.2 to 2.4.3

Release notes

Sourced from https://github.com/codespell-project/codespell's releases.

v2.4.3

What's Changed

... (truncated)

Commits
  • 57b2140 Read only [tool.codespell] from TOML config (#3975)
  • 23b8d94 [pre-commit.ci] pre-commit autoupdate
  • 926c4d6 [pre-commit.ci] pre-commit autoupdate
  • 820a301 Merge pull request #3967 from codespell-project/peternewman-patch-1
  • 9fe42c9 Add common misspellings for reseeve->reserve to dictionary
  • 725173c [pre-commit.ci] pre-commit autoupdate
  • 86c13ee [pre-commit.ci] pre-commit autoupdate
  • 7b9f36c Bump actions/checkout from 6 to 7
  • bcc1b80 Add spelling corrections for simpe and variants.
  • 89584cc [pre-commit.ci] pre-commit autoupdate
  • Additional commits viewable in compare view

Updates https://github.com/rstcheck/rstcheck from v6.2.5 to 6.3.0

Changelog

Sourced from https://github.com/rstcheck/rstcheck's changelog.

v6.3.0 (2026-07-28)

diff v6.2.5...v6.3.0

Documentation

  • switch from sphinx-click to sphinx-typer (#250)

Miscellaneous

  • Bump min. python version to 3.10 (#250)
  • Added python 3.14 to test suite (#250)
  • Bump min. rstcheck-core version to 1.3.1 (#254)
  • Add --sphinx-source-dir flag (#254)
Commits
  • d8774e9 "release v6.3.0 [skip ci]"
  • 382bcc8 Merge pull request #254 from rstcheck/support-rstcheck-core-1_3_1
  • 93a53bd update changelog
  • f69ee7c add flag for new sphinx_source_dir setting
  • 88c8248 bump min rstcheck-core version to 1.3.1
  • b4f9612 Merge pull request #253 from rstcheck/pre-commit-ci-update-config
  • 436c085 ignore argument count of cli function
  • 2608287 [pre-commit.ci] auto fixes from pre-commit.com hooks
  • 4be06fb [pre-commit.ci] pre-commit autoupdate
  • 96719d9 Merge pull request #250 from rstcheck/pre-commit-ci-update-config
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the pre-commit-hooks group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [https://github.com/astral-sh/ruff-pre-commit](https://github.com/astral-sh/ruff-pre-commit) | `v0.15.15` | `0.16.4` |
| [https://github.com/pre-commit/mirrors-mypy](https://github.com/pre-commit/mirrors-mypy) | `v1.15.0` | `2.3.1` |
| [https://github.com/codingjoe/relint](https://github.com/codingjoe/relint) | `3.3.1` | `3.5.0` |
| [https://github.com/codespell-project/codespell](https://github.com/codespell-project/codespell) | `v2.4.2` | `2.4.3` |
| [https://github.com/rstcheck/rstcheck](https://github.com/rstcheck/rstcheck) | `v6.2.5` | `6.3.0` |


Updates `https://github.com/astral-sh/ruff-pre-commit` from v0.15.15 to 0.16.4
- [Release notes](https://github.com/astral-sh/ruff-pre-commit/releases)
- [Commits](astral-sh/ruff-pre-commit@v0.15.15...v0.16.4)

Updates `https://github.com/pre-commit/mirrors-mypy` from v1.15.0 to 2.3.1
- [Commits](pre-commit/mirrors-mypy@v1.15.0...v2.3.1)

Updates `https://github.com/codingjoe/relint` from 3.3.1 to 3.5.0
- [Release notes](https://github.com/codingjoe/relint/releases)
- [Commits](codingjoe/relint@3.3.1...3.5.0)

Updates `https://github.com/codespell-project/codespell` from v2.4.2 to 2.4.3
- [Release notes](https://github.com/codespell-project/codespell/releases)
- [Commits](codespell-project/codespell@v2.4.2...v2.4.3)

Updates `https://github.com/rstcheck/rstcheck` from v6.2.5 to 6.3.0
- [Changelog](https://github.com/rstcheck/rstcheck/blob/main/CHANGELOG.md)
- [Commits](rstcheck/rstcheck@v6.2.5...v6.3.0)

---
updated-dependencies:
- dependency-name: https://github.com/astral-sh/ruff-pre-commit
  dependency-version: 0.16.4
  dependency-type: direct:production
  dependency-group: pre-commit-hooks
- dependency-name: https://github.com/pre-commit/mirrors-mypy
  dependency-version: 2.3.1
  dependency-type: direct:production
  dependency-group: pre-commit-hooks
- dependency-name: https://github.com/codingjoe/relint
  dependency-version: 3.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: pre-commit-hooks
- dependency-name: https://github.com/codespell-project/codespell
  dependency-version: 2.4.3
  dependency-type: direct:production
  dependency-group: pre-commit-hooks
- dependency-name: https://github.com/rstcheck/rstcheck
  dependency-version: 6.3.0
  dependency-type: direct:production
  dependency-group: pre-commit-hooks
...

Signed-off-by: dependabot[bot] <support@github.com>
Copilot AI lite review requested due to automatic review settings August 25, 2026 03:18
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file pre_commit Pull requests that update pre_commit code labels Aug 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR primarily updates the repository’s pre-commit hook versions and includes a set of mechanical type-hint normalization changes (e.g., X | None ordering) across the Python codebase.

Changes:

  • Bump multiple pre-commit hook revisions (ruff, mypy, relint, codespell, rstcheck).
  • Normalize/standardize PEP 604 union type annotations across several modules.
  • Minor typing cleanup in various method signatures/annotations.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.pre-commit-config.yaml Updates pre-commit hook revisions for ruff/mypy/relint/codespell/rstcheck.
geoh5py/workspace/workspace.py Reorders union types in get_entity local variable annotation.
geoh5py/ui_json/ui_json.py Reorders union types for __pydantic_extra__ annotation.
geoh5py/shared/utils.py Normalizes union order in min_max_scaler parameter typing.
geoh5py/objects/geo_image.py Normalizes union order in _create_geoimage_from_attributes signature.
geoh5py/io/h5_writer.py Normalizes union order in fetch_handle return type.
geoh5py/groups/interpretation_section.py Normalizes union order for local metadata typing.
geoh5py/data/visual_parameters.py Normalizes union order in property return types and method return type.
geoh5py/data/text_data.py Normalizes union order in text_formating signature.
geoh5py/data/data_type.py Normalizes union order in local filter_min/filter_max annotations.
Suppressed comments (2)

geoh5py/data/data_type.py:261

  • filter_min/value are checked via truthiness (if filter_min and value ...), which skips validation when either is 0 (a valid float/int). This can allow an invalid range through and also interacts with the subsequent float(value) if value else None pattern that would drop 0 to None. Prefer explicit is not None checks for comparisons and assignments.

Note: the same pattern exists in filter_min’s setter (around lines 282–288) and should be updated consistently.

This issue also appears on line 282 of the same file.

        filter_min: float | None = getattr(self, "_filter_min", None)
        if filter_min and value and value < filter_min:
            raise ValueError(
                "Attribute 'filter_max' must be greater than or equal to 'filter_min'."
            )

geoh5py/data/data_type.py:286

  • filter_max/value are checked via truthiness (if filter_max and value ...), which skips validation when either is 0 (a valid float/int). This can allow an invalid range through and also interacts with float(value) if value else None (which would drop 0 to None). Prefer explicit is not None checks for comparisons and assignments.

Note: the same pattern exists in filter_max’s setter (around lines 257–263) and should be updated consistently.

        filter_max: float | None = getattr(self, "_filter_max", None)
        if filter_max and value and value > filter_max:
            raise ValueError(
                "Attribute 'filter_min' must be less than or equal to 'filter_max'."
            )

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread geoh5py/data/text_data.py


def text_formating(values: None | np.ndarray | str) -> ndarray | None:
def text_formating(values: np.ndarray | str | None) -> ndarray | None:
@dependabot @github

dependabot Bot commented on behalf of github Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Looks like these dependencies are updatable in another way, so this is no longer needed.

@dependabot dependabot Bot closed this Sep 8, 2026
@dependabot
dependabot Bot deleted the dependabot/pre_commit/develop/pre-commit-hooks-bb45a0a7bb branch September 8, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file pre_commit Pull requests that update pre_commit code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant