From 96d7afcc1947b9916d5855ee27b323b90576c364 Mon Sep 17 00:00:00 2001 From: aryan kolapkar Date: Wed, 12 Aug 2026 10:20:50 +0530 Subject: [PATCH] Remove F405 from Ruff ignore list --- pyproject.toml | 1 - thunder/__init__.py | 9 ++++++++- thunder/core/utils.py | 9 +++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5d40822c5c..916a390a0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -156,7 +156,6 @@ ignore = [ # TODO(crcrpar): Resolves the following ignores as these are added while enabling ruff check in pre-commit "F821", # https://docs.astral.sh/ruff/rules/undefined-name/ "E402", # https://docs.astral.sh/ruff/rules/module-import-not-at-top-of-file/ - "F405", # https://docs.astral.sh/ruff/rules/undefined-local-with-import-star-usage/ "E712", # https://docs.astral.sh/ruff/rules/true-false-comparison/ "E721", # https://docs.astral.sh/ruff/rules/type-comparison/ ] diff --git a/thunder/__init__.py b/thunder/__init__.py index c0483f8c3a..48721dff5a 100644 --- a/thunder/__init__.py +++ b/thunder/__init__.py @@ -155,7 +155,14 @@ ] -from thunder.__about__ import * # noqa: F403 +from thunder.__about__ import ( + __author__ as __author__, + __author_email__ as __author_email__, + __copyright__ as __copyright__, + __docs__ as __docs__, + __homepage__ as __homepage__, + __version__ as __version__, +) # TODO maybe move these aliases to the core language? diff --git a/thunder/core/utils.py b/thunder/core/utils.py index 9ac5c0256b..b634be646c 100644 --- a/thunder/core/utils.py +++ b/thunder/core/utils.py @@ -15,7 +15,16 @@ import thunder.core.dtypes as dtypes from thunder.core.pytree import tree_flatten, tree_unflatten, tree_map from thunder.core.proxies import Proxy, NumberProxy, TensorProxy, variableify, CONSTRAINT, Variable +from thunder.core.baseutils import ( + BoundSymbolInterface, + TensorProxyInterface, + check, + check_type, + check_valid_length, + check_valid_shape, +) from thunder.core.baseutils import * # noqa: F403 +from thunder.core.codeutils import SigInfo from thunder.core.codeutils import * # noqa: F403 from thunder.core.trace import TraceCtx, tracectx import thunder.core.prims as prims