From 3856922672bd2f519d380601e0ee58332e7af767 Mon Sep 17 00:00:00 2001 From: Martin Kourim Date: Tue, 7 Oct 2025 16:25:38 +0200 Subject: [PATCH] chore: remove pytype configuration and checks This commit removes all references to pytype from the Makefile, code, and pyproject.toml. The lint target no longer runs pytype, and related comments and configuration sections have been deleted. --- Makefile | 1 - cardano_node_tests/utils/gh_issue.py | 1 - cardano_node_tests/utils/model_ekg.py | 2 +- pyproject.toml | 4 ---- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 51b1634f9..a4a02fbc1 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,6 @@ init_lint: .PHONY: lint lint: pre-commit run -a --show-diff-on-failure --color=always - if command -v pytype >/dev/null 2>&1; then pytype -k -j auto cardano_node_tests; fi # check if development environment is set up correctly diff --git a/cardano_node_tests/utils/gh_issue.py b/cardano_node_tests/utils/gh_issue.py index c2187c70f..bd8f2dc0a 100644 --- a/cardano_node_tests/utils/gh_issue.py +++ b/cardano_node_tests/utils/gh_issue.py @@ -61,7 +61,6 @@ def get_state(self) -> str | None: cached_state = self.issue_cache.get(identifier) if cached_state is None: - assert self.github # for pytype try: cached_state = self.github.get_repo(self.repo).get_issue(self.number).state.lower() except github.UnknownObjectException: diff --git a/cardano_node_tests/utils/model_ekg.py b/cardano_node_tests/utils/model_ekg.py index 8cba99bd9..cbf838d17 100644 --- a/cardano_node_tests/utils/model_ekg.py +++ b/cardano_node_tests/utils/model_ekg.py @@ -3,7 +3,7 @@ # timestamp: 2021-03-10T11:38:36+00:00 from __future__ import annotations -from pydantic import BaseModel # pytype: disable=import-error +from pydantic import BaseModel from pydantic import Field diff --git a/pyproject.toml b/pyproject.toml index 8924ab948..2e16e4906 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,10 +95,6 @@ ignore = ["ANN401", "B905", "D10", "D203", "D212", "D213", "D214", "D215", "D404 [tool.ruff.lint.isort] force-single-line = true -[tool.pytype] -python_version = "3.11" -disable = ["import-error"] - [tool.mypy] python_version = "3.11" show_error_context = true