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 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: