Skip to content

Commit

Permalink
pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Jul 11, 2023
1 parent 74d615c commit 5550fcb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ repos:
- id: check-case-conflict
- id: check-yaml
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.253
rev: v0.0.277
hooks:
- id: ruff
args: ["--fix"]
- repo: https://github.com/python/black
rev: 23.1.0
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.1
rev: v1.4.1
hooks:
- id: mypy
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion nxontology/tests/node_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_node_info_multiple_parents(metal_nxo_frozen: NXOntology[str]) -> None:
silver = metal_nxo_frozen.node_info("silver")
assert silver.parents == {"precious", "coinage"}
with pytest.raises(ValueError, match="has multiple parents"):
silver.parent
_parent = silver.parent
paths_from_roots = list(silver.paths_from_roots)
assert len(paths_from_roots) == 2

Expand Down
2 changes: 1 addition & 1 deletion nxontology/tests/ontology_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_nxontology_disconnected(disconnected_nxo: NXOntology[str]) -> None:
assert disconnected_nxo.roots == {"metal", "tree", "water"}
assert not networkx.is_weakly_connected(disconnected_nxo.graph)
with pytest.raises(ValueError, match="has multiple roots"):
disconnected_nxo.root
_root = disconnected_nxo.root


def test_set_graph_attributes(metal_nxo: NXOntology[str]) -> None:
Expand Down

0 comments on commit 5550fcb

Please sign in to comment.