Skip to content

Commit 71a4310

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a3c3bb6 commit 71a4310

8 files changed

Lines changed: 32 additions & 34 deletions

File tree

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import logging
33
from rich.console import Console
44
from rich.logging import RichHandler
55

6-
from ._destvi_utils import
6+
from ._destvi_utils import
77

88
try:
99
import importlib.metadata as importlib_metadata
@@ -29,4 +29,4 @@ logger.addHandler(ch)
2929
# this prevents double outputs
3030
logger.propagate = False
3131

32-
__all__ = ["destvi_utils"]
32+
__all__ = ["destvi_utils"]

.flake8

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
ignore = E203, E266, E501, W503, W605, N812
33
exclude = .git,docs
44
max-line-length = 119
5-

.github/workflows/test.yml

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,34 @@ on:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
1615
strategy:
1716
matrix:
1817
python-version: [3.11, 3.12, 3.13]
1918

2019
steps:
21-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v4
2221

23-
- uses: actions/setup-python@v5
24-
with:
25-
python-version: ${{ matrix.python }}
26-
cache: "pip"
27-
cache-dependency-path: "**/pyproject.toml"
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python }}
25+
cache: "pip"
26+
cache-dependency-path: "**/pyproject.toml"
2827

29-
- name: Install dependencies
30-
run: |
31-
pip install pytest-cov
32-
pip install .[dev]
33-
- name: Lint with flake8
34-
run: |
35-
flake8
36-
- name: Format with black
37-
run: |
38-
black --check .
39-
- name: Test with pytest
40-
run: |
41-
pytest --cov-report=xml --cov=destvi_utils
42-
- name: After success
43-
run: |
44-
bash <(curl -s https://codecov.io/bash)
45-
pip list
28+
- name: Install dependencies
29+
run: |
30+
pip install pytest-cov
31+
pip install .[dev]
32+
- name: Lint with flake8
33+
run: |
34+
flake8
35+
- name: Format with black
36+
run: |
37+
black --check .
38+
- name: Test with pytest
39+
run: |
40+
pytest --cov-report=xml --cov=destvi_utils
41+
- name: After success
42+
run: |
43+
bash <(curl -s https://codecov.io/bash)
44+
pip list

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Implementation of the automatic pipeline for downstream analysis of DestVI's res
1313
```
1414
pip install git+https://github.com/yoseflab/destvi_utils.git
1515
```
16-
Please be sure to install a version of [PyTorch](https://pytorch.org/) that is compatible with your GPU (if applicable).
1716

17+
Please be sure to install a version of [PyTorch](https://pytorch.org/) that is compatible with your GPU (if applicable).
1818

1919
# Resources
2020

21-
- API reference, and installation guides are available in
21+
- API reference, and installation guides are available in
2222
the [documentation](https://destvi-utils.readthedocs.io/en/latest/).
23-
- Please use the [issues](https://github.com/yoseflab/destvi_utils_/issues) to submit bug reports.
23+
- Please use the [issues](https://github.com/yoseflab/destvi_utils_/issues) to submit bug reports.

docs/api/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ destvi_utils
1414
automatic_proportion_threshold
1515
explore_gamma_space
1616
de_genes
17-
plot_de_genes
17+
plot_de_genes

docs/extensions/typed_returns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def process_return(lines):
1111
m = re.fullmatch(r"(?P<param>\w+)\s+:\s+(?P<type>[\w.]+)", line)
1212
if m:
1313
# Once this is in scanpydoc, we can use the fancy hover stuff
14-
yield f'-{m["param"]} (:class:`~{m["type"]}`)'
14+
yield f"-{m['param']} (:class:`~{m['type']}`)"
1515
else:
1616
yield line
1717

docs/release_notes/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Version 0.1
99
.. toctree::
1010
:maxdepth: 2
1111

12-
v0.1.0
12+
v0.1.0

docs/release_notes/v0.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
New in 0.1.0 (2022-04-02)
22
-------------------------
3-
Initial release of the utilities functions. Complies with `scvi-tools>=0.15.0`.
3+
Initial release of the utilities functions. Complies with `scvi-tools>=0.15.0`.

0 commit comments

Comments
 (0)