From 6cf5ff5ad1cc17722274944315579028b6940e8d Mon Sep 17 00:00:00 2001 From: Daniel Himmelstein Date: Fri, 22 Mar 2024 13:47:27 -0400 Subject: [PATCH] pre-commit autoupdate --- .pre-commit-config.yaml | 14 +++++++------- nxontology_data/efo/efo.py | 6 +++--- nxontology_data/hgnc/hgnc.py | 12 ++++++------ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d7a4bdf..4cbfbfe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,25 +2,25 @@ default_language_version: python: python3.10 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-merge-conflict - id: debug-statements - id: mixed-line-ending - id: check-case-conflict - id: check-yaml - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.277 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.3.4 hooks: - id: ruff args: - --fix - - repo: https://github.com/python/black - rev: 23.3.0 + - repo: https://github.com/psf/black + rev: 24.3.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.4.1 + rev: v1.9.0 hooks: - id: mypy additional_dependencies: @@ -30,7 +30,7 @@ repos: - pandas==1.5.3 - pytest - repo: https://github.com/python-poetry/poetry - rev: '1.5.0' # pre-commit autoupdate will not update to the latest version + rev: '1.8.2' # pre-commit autoupdate will not update to the latest version hooks: - id: poetry-check - id: poetry-lock diff --git a/nxontology_data/efo/efo.py b/nxontology_data/efo/efo.py index 985189d..476b0a1 100644 --- a/nxontology_data/efo/efo.py +++ b/nxontology_data/efo/efo.py @@ -431,9 +431,9 @@ def create_slim_nxo(nxo: NXOntology[str]) -> NXOntology[str]: nxo.graph.subgraph(otar_slim_nodes).copy() ) nxo_slim.graph.graph["name"] = "efo_otar_slim" - nxo_slim.graph.graph[ - "note" - ] = "EFO OTAR Slim was created from EFO OTAR Profile by nxontology-data." + nxo_slim.graph.graph["note"] = ( + "EFO OTAR Slim was created from EFO OTAR Profile by nxontology-data." + ) return nxo_slim diff --git a/nxontology_data/hgnc/hgnc.py b/nxontology_data/hgnc/hgnc.py index 22d2274..6a19168 100644 --- a/nxontology_data/hgnc/hgnc.py +++ b/nxontology_data/hgnc/hgnc.py @@ -95,12 +95,12 @@ def _create_nxo_from_tables( nxo: NXOntology[int] = NXOntology() nxo.graph.graph["name"] = "hgnc_gene_group" nxo.graph.graph["description"] = "HGNC Gene Group / Family Ontology" - nxo.graph.graph[ - "data_license_source" - ] = "https://www.genenames.org/about/license/" - nxo.graph.graph[ - "data_license_url" - ] = "https://creativecommons.org/publicdomain/zero/1.0/" + nxo.graph.graph["data_license_source"] = ( + "https://www.genenames.org/about/license/" + ) + nxo.graph.graph["data_license_url"] = ( + "https://creativecommons.org/publicdomain/zero/1.0/" + ) nxo.graph.graph["data_license_spdx_id"] = "CC0-1.0" nxo.set_graph_attributes( node_identifier_attribute="id", node_name_attribute="name"