Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit filtered warnings #319

Closed
1 task
blakeNaccarato opened this issue Mar 3, 2023 · 19 comments
Closed
1 task

Revisit filtered warnings #319

blakeNaccarato opened this issue Mar 3, 2023 · 19 comments
Labels
enhancement New feature or request

Comments

@blakeNaccarato
Copy link
Owner

blakeNaccarato commented Mar 3, 2023

This long-lived issue will track filtered warnings for eventual un-filtering.


  • Check back in a year and see if this can be removed

See pypa/setuptools#3837.

ignore:Deprecated call to `pkg_resources.declare_namespace:DeprecationWarning
@blakeNaccarato blakeNaccarato changed the title Revisit ignored DeprecationWarning triggered by setuptools Revisit filtered warnings Mar 3, 2023
@blakeNaccarato
Copy link
Owner Author

blakeNaccarato commented Mar 3, 2023

  • Check back in a year and see if this can be removed

See pypa/pip#9250

ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning:pip._vendor.packaging.version

@blakeNaccarato
Copy link
Owner Author

blakeNaccarato commented Mar 3, 2023

  • Check back

See microsoft/vscode-python#16756.

default,ignore:Deprecated call to... in .env

@blakeNaccarato
Copy link
Owner Author

blakeNaccarato commented Mar 5, 2023

  • Check back

Pre-commit emits some deprecation warnings when installing hooks.

ignore:read_text is deprecated:DeprecationWarning:pre_commit.util,
ignore:open_text is deprecated:DeprecationWarning:importlib.resources._legacy

@blakeNaccarato
Copy link
Owner Author

blakeNaccarato commented Mar 5, 2023

  • Check back

Google Cloud (gcloud projects list) emits these warnings.

ignore:the imp module is deprecated in favour of importlib:DeprecationWarning:googlecloudsdk.core.util.importing,
ignore:Using or importing the ABCs:DeprecationWarning:jsonschema.compat

@blakeNaccarato
Copy link
Owner Author

  • Revisit warnings filtered when reproducing dvc and papermill pipeline
,ignore:The dpath.util package is being deprecated.:DeprecationWarning:dvc.dependency.param,ignore:unclosed file:ResourceWarning:dvc.stage.cache,ignore:the imp module is deprecated:DeprecationWarning:ansiwrap.core,ignore:unclosed file:ResourceWarning:ansiwrap.core,ignore:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning:jupyter_client.connect,ignore:the file is not specified with any extension:UserWarning:papermill.iorw,ignore:Passing unrecognized arguments to super:DeprecationWarning:traitlets.config.configurable,ignore:pkg_resources is deprecated as an API:DeprecationWarning:pkg_resources

@blakeNaccarato
Copy link
Owner Author

blakeNaccarato commented Mar 7, 2023

  • Revisit warnings filtered when running copier, triggering a plumbum warning
ignore:unclosed file:ResourceWarning:plumbum.commands.base

@blakeNaccarato
Copy link
Owner Author

blakeNaccarato commented Apr 1, 2023

  • Revisit warning filtered when using dvc pull, triggering a subprocess ResourceWarning
ignore:subprocess:ResourceWarning:subprocess

@blakeNaccarato
Copy link
Owner Author

blakeNaccarato commented Apr 3, 2023

  • Revisit warning filtered when using dvc repro
ignore:BuiltinImporter.module_repr:DeprecationWarning:importlib._bootstrap

@blakeNaccarato
Copy link
Owner Author

blakeNaccarato commented Apr 7, 2023

  • Revisit warning filtered when using VSCode Debug mode, and their frozenlib deps raise these warnings
ignore:importlib._bootstrap:ImportWarning,ignore:distutils Version classes are deprecated:DeprecationWarning,ignore:the imp module is deprecated:DeprecationWarning,ignore: ImportDenier.find_spec:ImportWarning

@blakeNaccarato
Copy link
Owner Author

blakeNaccarato commented Apr 10, 2023

  • Revisit warning filtered for DeprecationWarning in autopep8 upstream.

See hhatto/autopep8#581.

    ignore:lib2to3 package is deprecated and may not be able to parse Python:PendingDeprecationWarning
    ignore:lib2to3 package is deprecated and may not be able to parse Python:DeprecationWarning

@blakeNaccarato
Copy link
Owner Author

  • Revisit warning
    ignore:ImportDenier:ImportWarning

@blakeNaccarato
Copy link
Owner Author

  • Revisit warning due to order of imports netcdf4

See pydata/xarray#7259

    ignore:numpy.ndarray size changed:RuntimeWarning

@blakeNaccarato
Copy link
Owner Author

  • Revisit warning filtered when using dvc status --cloud in a Google Drive project
    ignore:unclosed:ResourceWarning:sys
sys:1: ResourceWarning: unclosed <ssl.SSLSocket ...>
ResourceWarning: Enable tracemalloc to get the object allocation traceback

@blakeNaccarato
Copy link
Owner Author

  • Consider filtering warning from zmq consumers like testbook for Pytest.

See zeromq/pyzmq#1830 and python/cpython#77373. This is how it would be filtered:

    ignore:Proactor event loop:RuntimeWarning

See also this SO comment recommending the following solution:

import platform

if platform.system() == "Windows":
    import asyncio

    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

@blakeNaccarato
Copy link
Owner Author

  • Revisit MyST related warnings
    ignore::DeprecationWarning:sphinx.util.images
    ignore::DeprecationWarning:myst_nb.sphinx_ext

@blakeNaccarato
Copy link
Owner Author

blakeNaccarato commented Jun 20, 2023

  • Revisit DVC and Google Drive related warnings
    ignore:unclosed:ResourceWarning:googleapiclient.discovery
	ignore:unclosed:ResourceWarning:sys

@blakeNaccarato
Copy link
Owner Author

  • Revisit trackpy warnings
    ignore:Please use `binary_dilation`:DeprecationWarning:trackpy.uncertainty
    ignore:Importing clear_output from IPython.core.display is deprecated:DeprecationWarning:trackpy.utils

@blakeNaccarato
Copy link
Owner Author

  • Revisit VSCode debug warnings when PyQt5 is installed
            (
                r"distutils Version classes are deprecated\. Use packaging\.version instead\.",
                DeprecationWarning,
            ),
            (
                r"unclosed file <_io\.BufferedReader name='.*'>",
                ResourceWarning,
            ),

@blakeNaccarato
Copy link
Owner Author

Now that warning management is simplified, this no longer needs to be tracked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Archived in project
Development

No branches or pull requests

1 participant