Skip to content

refactor: fix blind exceptions and clean up stale linter ignores#582

Open
bijanmurmu wants to merge 1 commit into
coderamp-labs:mainfrom
bijanmurmu:fix-ignored-ruff-rules
Open

refactor: fix blind exceptions and clean up stale linter ignores#582
bijanmurmu wants to merge 1 commit into
coderamp-labs:mainfrom
bijanmurmu:fix-ignored-ruff-rules

Conversation

@bijanmurmu
Copy link
Copy Markdown

This commit addresses the stale TODO in pyproject.toml by removing the ignore rules for BLE001, S108, and FAST003. All 11 instances of broad exception catching (except Exception:) across the codebase have been either replaced with specific exceptions (e.g. ValueError, OSError, InvalidNotebookError, httpx.RequestError) or annotated with # noqa: BLE001 where a global catch-all is explicitly required by design (e.g., global error handlers and cache fallbacks). Additional minor linter warnings (FURB171 and ASYNC240) were also addressed to ensure a fully passing codebase. Fixes #581.

This commit addresses the stale TODO in pyproject.toml by removing the ignore rules for BLE001, S108, and FAST003. All 11 instances of broad exception catching (except Exception:) across the codebase have been either replaced with specific exceptions (e.g. ValueError, OSError, InvalidNotebookError, httpx.RequestError) or annotated with # noqa: BLE001 where a global catch-all is explicitly required by design (e.g., global error handlers and cache fallbacks). Additional minor linter warnings (FURB171 and ASYNC240) were also addressed to ensure a fully passing codebase. Fixes coderamp-labs#581.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor: Fix blind exceptions (BLE001) and clean up stale linter ignores in pyproject.toml

1 participant