Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.6
rev: v0.16.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
if __name__ == "__main__":
try:
setup(use_scm_version={"version_scheme": "no-guess-dev"})
except: # noqa
except:
print(
"\n\nAn error occurred while building the project, "
"please ensure you have the most updated version of setuptools, "
Expand Down
167 changes: 84 additions & 83 deletions src/singlecellexperiment/SingleCellExperiment.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/singlecellexperiment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
finally:
del version, PackageNotFoundError

from .io import read_h5ad, read_tenx_mtx, read_tenx_h5
from .io import read_h5ad, read_tenx_h5, read_tenx_mtx
from .SingleCellExperiment import SingleCellExperiment
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
- https://docs.pytest.org/en/stable/writing_plugins.html
"""

import pytest
import data.mocks as sce
import pytest


@pytest.fixture
Expand Down
4 changes: 2 additions & 2 deletions tests/test_sce.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"starts": range(100, 300),
"ends": range(110, 310),
"strand": ["-", "+", "+", "*", "*", "+", "+", "+", "-", "-"] * 20,
"score": range(0, 200),
"score": range(200),
"GC": [random() for _ in range(10)] * 20,
}
)
Expand Down Expand Up @@ -93,7 +93,7 @@ def test_SCE_creation_with_alts_should_fail():
"starts": range(100, 300),
"ends": range(110, 310),
"strand": ["-", "+", "+", "*", "*", "+", "+", "+", "-", "-"] * 20,
"score": range(0, 200),
"score": range(200),
"GC": [random() for _ in range(10)] * 20,
}
)
Expand Down
3 changes: 1 addition & 2 deletions tests/test_sce_combine_rows.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import biocutils
import numpy as np
import pytest

from singlecellexperiment.SingleCellExperiment import SingleCellExperiment

import pytest

__author__ = "jkanche"
__copyright__ = "jkanche"
__license__ = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sce_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"starts": range(100, 300),
"ends": range(110, 310),
"strand": ["-", "+", "+", "*", "*", "+", "+", "+", "-", "-"] * 20,
"score": range(0, 200),
"score": range(200),
"GC": [random() for _ in range(10)] * 20,
}
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sce_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"starts": range(100, 300),
"ends": range(110, 310),
"strand": ["-", "+", "+", "*", "*", "+", "+", "+", "-", "-"] * 20,
"score": range(0, 200),
"score": range(200),
"GC": [random() for _ in range(10)] * 20,
}
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sce_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"starts": range(100, 300),
"ends": range(110, 310),
"strand": ["-", "+", "+", "*", "*", "+", "+", "+", "-", "-"] * 20,
"score": range(0, 200),
"score": range(200),
"GC": [random() for _ in range(10)] * 20,
}
)
Expand Down
Loading