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 Oct 9, 2024
1 parent b03d52f commit 84a297e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/rds2py/s4vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions tests/test_atomics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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")

Expand All @@ -44,6 +49,7 @@ def test_read_atomic_double():

## Ints


def test_read_atomic_ints():
arr = read_rds("tests/data/atomic_ints.rds")

Expand All @@ -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")

Expand Down

0 comments on commit 84a297e

Please sign in to comment.