From 4f9763cca53f0c904c096e83fc61d3c869da002c Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Thu, 18 Jan 2024 17:31:26 +0000 Subject: [PATCH] Add missing mypy dependencies See https://github.com/pre-commit/mirrors-mypy?tab=readme-ov-file#using-mypy-with-pre-commit --- .pre-commit-config.yaml | 2 +- guppylang/hugr/hugr.py | 2 +- guppylang/hugr/visualise.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d49f1d7a..ce7135c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: - id: mypy pass_filenames: false args: [--package=guppylang] - additional_dependencies: [ormsgpack, pydantic] + additional_dependencies: [ormsgpack, pydantic, graphviz, networkx] - repo: local hooks: diff --git a/guppylang/hugr/hugr.py b/guppylang/hugr/hugr.py index 07db8f1d..9059c3c7 100644 --- a/guppylang/hugr/hugr.py +++ b/guppylang/hugr/hugr.py @@ -5,7 +5,7 @@ from dataclasses import dataclass, field from typing import Any, Optional -import networkx as nx # type: ignore[import-not-found] +import networkx as nx # type: ignore[import-untyped] import guppylang.hugr.ops as ops import guppylang.hugr.raw as raw diff --git a/guppylang/hugr/visualise.py b/guppylang/hugr/visualise.py index d1428a73..590861ec 100644 --- a/guppylang/hugr/visualise.py +++ b/guppylang/hugr/visualise.py @@ -3,7 +3,7 @@ from collections.abc import Iterable from typing import TYPE_CHECKING -import graphviz as gv # type: ignore[import-not-found] +import graphviz as gv # type: ignore[import-untyped] from guppylang.cfg.analysis import ( DefAssignmentDomain,