From 84a297e6835299f9947e64c53a17cc1409e0109c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 20:15:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/rds2py/s4vectors.py | 2 +- tests/test_atomics.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/rds2py/s4vectors.py b/src/rds2py/s4vectors.py index d6cf405..753e845 100644 --- a/src/rds2py/s4vectors.py +++ b/src/rds2py/s4vectors.py @@ -6,7 +6,7 @@ def parse_rle(x: dict) -> list: - """Parse an S4Vector RLE class as list + """Parse an S4Vector RLE class as list. Args: x: diff --git a/tests/test_atomics.py b/tests/test_atomics.py index 06e175b..0df8d34 100644 --- a/tests/test_atomics.py +++ b/tests/test_atomics.py @@ -10,13 +10,16 @@ ## With attributes + def test_read_atomic_attrs(): obj = read_rds("tests/data/atomic_attr.rds") assert obj is not None + ## Booleans + def test_read_atomic_logical(): arr = read_rds("tests/data/atomic_logical.rds") @@ -32,8 +35,10 @@ def test_read_atomic_logical_na(): assert isinstance(arr, BooleanList) assert len(arr) > 0 + ## Doubles/Floats + def test_read_atomic_double(): obj = read_rds("tests/data/atomic_double.rds") @@ -44,6 +49,7 @@ def test_read_atomic_double(): ## Ints + def test_read_atomic_ints(): arr = read_rds("tests/data/atomic_ints.rds") @@ -64,6 +70,7 @@ def test_read_atomic_ints_with_names(): ## Strings + def test_read_atomic_chars(): arr = read_rds("tests/data/atomic_chars.rds")