Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 12, 2024
1 parent c267b77 commit b89ea8a
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions csa_header/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<https://nipy.org/nibabel/dicom/siemens_csa.html#siemens-format-dicom-with-csa-header>`_
`NiBabel <https://nipy.org/nibabel/index.html>`_ article.
"""

from csa_header.header import CsaHeader

__all__ = ["CsaHeader"]
1 change: 1 addition & 0 deletions csa_header/ascii/ascconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
We deal with this by dropping any assignments containing ``__attribute__``.
"""

from __future__ import annotations

import ast
Expand Down
1 change: 1 addition & 0 deletions csa_header/ascii/header.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Definition of the :class:`CsaAsciiHeader`.
"""

from typing import Union

from csa_header.ascii.ascconv import parse_ascconv
Expand Down
1 change: 1 addition & 0 deletions csa_header/ascii/messages.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Messages for the :mod:`~csa_header.ascii` module.
"""

AST_N_TARGETS: str = "Invalid number of AST assignment targets! Expected 1, got {n_targets}."
BAD_ASCCONV_TYPE: str = "Atom {el} has type {maker}, but expecting type {expected_type}"
UNEXPECTED_LHS: str = "Unexpected LHS element: {target}"
Expand Down
1 change: 1 addition & 0 deletions csa_header/header.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Definition of the :class:`CsaHeader` class."""

from collections.abc import Iterable
from typing import Any

Expand Down
1 change: 1 addition & 0 deletions csa_header/messages.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Messages for the :mod:`csa_header` library.
"""

INVALID_CHECK_BIT: str = (
"CSA element #{i_tag} has an invalid check bit value: {check_bit}!\nValid values are {valid_values}"
)
Expand Down
1 change: 1 addition & 0 deletions csa_header/unpacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
----------
* https://github.com/nipy/nibabel/blob/4703f4d8e32be4cec30e829c2d93ebe54759bb62/nibabel/nicom/structreader.py
"""

from __future__ import annotations

from struct import Struct
Expand Down
1 change: 1 addition & 0 deletions csa_header/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Utilities for the :mod:`csa_header` library.
"""

# DICOM VR code to Python type
VR_TO_TYPE = {
"FL": float, # float
Expand Down
1 change: 1 addition & 0 deletions tests/ascii/fixtures.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Comparison values to test ascconv parsing."""

from tests.fixtures import TEST_FILES_DIR

RAW_ELEMENTS = """
Expand Down
1 change: 1 addition & 0 deletions tests/ascii/test_ascconv_sample.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for the the Siemens "ASCCONV" parser.
"""

import ast
from collections import OrderedDict

Expand Down
1 change: 1 addition & 0 deletions tests/fixtures.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fixtures for tests."""

from pathlib import Path

TEST_FILES_DIR: Path = Path(__file__).parent / "files"
Expand Down

0 comments on commit b89ea8a

Please sign in to comment.