Skip to content

Commit fa6f240

Browse files
authored
Merge pull request #502 from falquaddoomi/general-testing-fixes
Fixes various test, pre-commit issues after fixing testing workflow
2 parents e84ad26 + c892b3b commit fa6f240

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+138
-106
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
repos:
22
- repo: https://github.com/adrienverge/yamllint.git
3-
rev: v1.33.0
3+
rev: v1.35.1
44
hooks:
55
- id: yamllint
66
args: [-c=.yamllint.yml]
77

88
- repo: https://github.com/pycqa/isort
9-
rev: 5.12.0
9+
rev: 5.13.2
1010
hooks:
1111
- id: isort
1212

1313
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v4.5.0
14+
rev: v5.0.0
1515
hooks:
1616
- id: trailing-whitespace
1717
exclude: .bumpversion.cfg
@@ -25,25 +25,25 @@ repos:
2525
- id: add-trailing-comma
2626

2727
- repo: https://github.com/asottile/pyupgrade
28-
rev: v3.15.0
28+
rev: v3.19.0
2929
hooks:
3030
- id: pyupgrade
3131

3232
- repo: https://github.com/psf/black
33-
rev: 23.11.0
33+
rev: 24.10.0
3434
hooks:
3535
- id: black
3636
args: ["--safe"]
3737

3838
- repo: https://github.com/PyCQA/docformatter
39-
rev: v1.7.5
39+
rev: eb1df347edd128b30cd3368dddc3aa65edcfac38 # v1.7.5
4040
hooks:
4141
- id: docformatter
4242
name: Format docstring
4343
args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "80", --blank]
4444

4545
- repo: https://github.com/executablebooks/mdformat
46-
rev: 0.7.17
46+
rev: 0.7.19
4747
hooks:
4848
- id: mdformat
4949
name: Format markdown

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion

example/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import obnb.data
2+
from obnb.alltypes import LogLevel
23
from obnb.label.filters import (
34
Compose,
45
EntityExistenceFilter,
@@ -7,7 +8,6 @@
78
NegativeGeneratorHypergeom,
89
)
910
from obnb.label.split import RatioPartition
10-
from obnb.typing import LogLevel
1111
from obnb.util.converter import GenePropertyConverter
1212

1313

script/release_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
import obnb.data
1515
from obnb import logger
16+
from obnb.alltypes import Dict, List, Tuple
1617
from obnb.config import OBNB_DATA_URL_DICT
1718
from obnb.data.base import BaseData
18-
from obnb.typing import Dict, List, Tuple
1919
from obnb.util.converter import GenePropertyConverter
2020

2121
HOMEDIR = Path(__file__).resolve().parent

src/obnb/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Collection of network learning evaluation utilities."""
2+
23
from obnb import graph, label, model_trainer
34
from obnb.dataset import Dataset, OpenBiomedNetBench
45
from obnb.util.checkers import checkVersion
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Collection of types used in obnb."""
2+
23
from typing import (
34
Any,
45
Callable,

src/obnb/config/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Configurations used by obnb."""
2-
from obnb.typing import Dict
2+
3+
from obnb.alltypes import Dict
34

45
__all__ = [
56
"DEFAULT_RETRY_DELAY",

src/obnb/data/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Interface with various databases to retrieve data."""
2+
23
from obnb.data import annotated_ontology, annotation, network, ontology
34
from obnb.data.annotated_ontology import (
45
DISEASES,

src/obnb/data/annotated_ontology/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Annotated ontology data."""
2+
23
from obnb.data.annotated_ontology.diseases import (
34
DISEASES,
45
DISEASES_ExperimentsFiltered,

src/obnb/data/annotated_ontology/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from tqdm import tqdm
22

3+
from obnb.alltypes import Any, Dict, List, Optional, Type
34
from obnb.data.annotation.base import BaseAnnotationData
45
from obnb.data.base import BaseData
56
from obnb.data.ontology.base import BaseOntologyData
67
from obnb.exception import IDNotExistError
78
from obnb.label import LabelsetCollection
8-
from obnb.typing import Any, Dict, List, Optional, Type
99
from obnb.util.logger import display_pbar
1010

1111

0 commit comments

Comments
 (0)