Skip to content

Ban dynamic builtins and typing.cast in lint config#2233

Merged
adamtheturtle merged 1 commit into
mainfrom
chore/pylint-builtin-bans
May 20, 2026
Merged

Ban dynamic builtins and typing.cast in lint config#2233
adamtheturtle merged 1 commit into
mainfrom
chore/pylint-builtin-bans

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Summary

  • Add literalizer DEPRECATED_BUILTINS.bad-functions pylint config.
  • Ban typing.cast via ruff where applicable.

Test plan

  • CI lint passes.

Made with Cursor

Align pylint and ruff with literalizer: forbid bare filter, getattr,
hasattr, map, and setattr via pylint, and ban typing.cast via ruff.
Fix or exempt existing violations.

Co-authored-by: Cursor <cursoragent@cursor.com>
@adamtheturtle adamtheturtle merged commit a1f9d57 into main May 20, 2026
15 checks passed
@adamtheturtle adamtheturtle deleted the chore/pylint-builtin-bans branch May 20, 2026 07:09
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.

1 participant