Skip to content

Add all Python warnings for checking by warning-checker by default.  #201

Closed

Description

@mmcky

Update warning checker configuration to include UserWarning

@mmcky : one for the warning checker: /home/runner/miniconda3/envs/quantecon/lib/python3.12/site-packages/IPython/core/pylabtools.py:170: UserWarning: Creating legend with loc="best" can be slow with large amounts of data. fig.canvas.print_figure(bytes_io, **kw)

Originally posted by @jstac in QuantEcon/lecture-python.myst#545 (comment)

Activity

  1. changed the title [-]@mmcky : one for the warning checker: `/home/runner/miniconda3/envs/quantecon/lib/python3.12/site-packages/IPython/core/pylabtools.py:170: UserWarning: Creating legend with loc="best" can be slow with large amounts of data.[/-] [+]Add `UserWarning` to warning-checker default config[/+] on Aug 15, 2025
  2. jstac commented on Aug 15, 2025

    @jstac
    Contributor

    Thanks @mmcky . Here's what Claude claims to be the full set of warnings:

    Python has several built-in warning categories besides UserWarning. Here are the main ones:
    Core Warning Types:

    DeprecationWarning - For deprecated features that will be removed in future versions
    PendingDeprecationWarning - For features that may be deprecated in the future
    SyntaxWarning - For dubious syntax that isn't technically incorrect
    RuntimeWarning - For runtime issues that aren't errors
    FutureWarning - For constructs that will change semantically in the future
    ImportWarning - For issues with imports
    UnicodeWarning - For Unicode-related issues
    BytesWarning - For issues related to bytes and buffer objects
    ResourceWarning - For resource usage issues (like unclosed files)

    Specialized Warnings:

    EncodingWarning - For encoding-related issues (added in Python 3.10)

  3. self-assigned this
    on Aug 15, 2025
  4. mmcky commented on Aug 15, 2025

    @mmcky
    ContributorAuthor

    @copilot can you please add the above Warning types to the default configuration for our actions/check-warnings action.

  5. changed the title [-]Add `UserWarning` to warning-checker default config[/-] [+]Add all Python warnings for checking by `warning-checker` by default. [/+] on Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions