Skip to content

Commit 8ff8536

Browse files
chores: format files by suggestion of running ruff
1 parent eb493a2 commit 8ff8536

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ default_stages:
2222
repos:
2323
# Fast Python linter and formatter with auto-fix support
2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.12.3
25+
rev: v0.12.5
2626
hooks:
2727
- id: ruff-check
2828
args: [--fix, --show-fixes]

notebooks/quickstart_demo.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@
367367
"name_id_go = 'go'\n",
368368
"format_go = 'obo'\n",
369369
"\n",
370-
"gene_ontology = ontology_loader.load_from_registry(name_id=name_id_go, format=format_go)\n",
370+
"gene_ontology = ontology_loader.load_from_registry(\n",
371+
" name_id=name_id_go, format=format_go\n",
372+
")\n",
371373
"\n",
372374
"print(f'Loaded ontology: {name_id_go}.{format_go}')\n",
373375
"print(f'Number of terms: {len(gene_ontology.terms())}')"
@@ -579,7 +581,7 @@
579581
"outputs": [],
580582
"source": [
581583
"# Load \"chebi\" ontology previosly downloaded\n",
582-
"#chebi = loader.load_from_registry(name_id=\"chebi\", format=\"owl\")"
584+
"# chebi = loader.load_from_registry(name_id=\"chebi\", format=\"owl\")"
583585
]
584586
},
585587
{
@@ -599,9 +601,9 @@
599601
"metadata": {},
600602
"outputs": [],
601603
"source": [
602-
"path='../data/out/go_version1.obo'\n",
604+
"path = '../data/out/go_version1.obo'\n",
603605
"\n",
604-
"Path(path).exists()\n"
606+
"Path(path).exists()"
605607
]
606608
},
607609
{

0 commit comments

Comments
 (0)