From 9b190371f8c59d60cbd5831451ff0506476dbe90 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 20:02:16 +0000 Subject: [PATCH 1/2] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/adamchainz/blacken-docs: 1.19.1 → 1.20.0](https://github.com/adamchainz/blacken-docs/compare/1.19.1...1.20.0) - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.5 → v0.15.12](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.5...v0.15.12) - [github.com/pre-commit/mirrors-mypy: v1.17.0 → v2.0.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.17.0...v2.0.0) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](https://github.com/codespell-project/codespell/compare/v2.4.1...v2.4.2) - [github.com/shellcheck-py/shellcheck-py: v0.10.0.1 → v0.11.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.10.0.1...v0.11.0.1) - [github.com/abravalheri/validate-pyproject: v0.24.1 → v0.25](https://github.com/abravalheri/validate-pyproject/compare/v0.24.1...v0.25) - [github.com/python-jsonschema/check-jsonschema: 0.33.2 → 0.37.2](https://github.com/python-jsonschema/check-jsonschema/compare/0.33.2...0.37.2) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94e7eef..26ed86d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,13 +4,13 @@ ci: repos: - repo: https://github.com/adamchainz/blacken-docs - rev: "1.19.1" + rev: "1.20.0" hooks: - id: blacken-docs additional_dependencies: [black==24.*] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v5.0.0" + rev: "v6.0.0" hooks: - id: check-added-large-files - id: check-case-conflict @@ -33,14 +33,14 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.12.5" + rev: "v0.15.12" hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.17.0" + rev: "v2.0.0" hooks: - id: mypy files: dafits|tests @@ -49,14 +49,14 @@ repos: - pytest - repo: https://github.com/codespell-project/codespell - rev: "v2.4.1" + rev: "v2.4.2" hooks: - id: codespell additional_dependencies: - tomli - repo: https://github.com/shellcheck-py/shellcheck-py - rev: "v0.10.0.1" + rev: "v0.11.0.1" hooks: - id: shellcheck @@ -69,13 +69,13 @@ repos: exclude: .pre-commit-config.yaml - repo: https://github.com/abravalheri/validate-pyproject - rev: "v0.24.1" + rev: "v0.25" hooks: - id: validate-pyproject additional_dependencies: ["validate-pyproject-schema-store[all]"] - repo: https://github.com/python-jsonschema/check-jsonschema - rev: "0.33.2" + rev: "0.37.2" hooks: - id: check-dependabot - id: check-github-workflows From ebf3bb61a581d2b44ccaa3b481465cc019aef780 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 20:03:25 +0000 Subject: [PATCH 2/2] style: pre-commit fixes --- dafits/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dafits/io.py b/dafits/io.py index 2c86425..0a307e5 100644 --- a/dafits/io.py +++ b/dafits/io.py @@ -103,7 +103,7 @@ def _init_large_file( overwrite=overwrite, ) - bytes_per_value = BIT_DICT.get(abs(output_header["BITPIX"]), None) + bytes_per_value = BIT_DICT.get(abs(output_header["BITPIX"])) msg = f"Header BITPIX={output_header['BITPIX']}, bytes_per_value={bytes_per_value}" logger.info(msg) if bytes_per_value is None: