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

Stop ignoring resource warnings #73

Closed
jaraco opened this issue Dec 6, 2022 · 0 comments
Closed

Stop ignoring resource warnings #73

jaraco opened this issue Dec 6, 2022 · 0 comments

Comments

@jaraco
Copy link
Owner

jaraco commented Dec 6, 2022

In python/importlib_resources#274, I learned that Python/pytest uses ignore by default. To make these warnings more prevalent, this project should set those warnings to default instead so they appear in test output.

@jaraco jaraco closed this as completed in 9708c37 Dec 6, 2022
clrpackages pushed a commit to clearlinux-pkgs/pypi-importlib_resources that referenced this issue Dec 13, 2022
….10.0 to version 5.10.1

Jason R. Coombs (9):
      GHA pretty env (#67)
      Bump importlib_resources version synced to stdlib.
      Pin mypy to '<0.990' due to realpython/pytest-mypy#141
      Remove the hyperlink for the Python versions badge. The PyPI badge is a better anchor for the hyperlink.
      Apply explicit_package_bases for mypy and unpin the version. Ref python/mypy#14057.
      Add Python 3.12 to matrix. Only test 3.8-3.10 on Linux.
      Disable flake8 on Python 3.12. Workaround for tholo/pytest-flake8#87.
      Update changelog
      Honor ResourceWarnings. Fixes jaraco/skeleton#73.

Karthikeyan Singaravelan (1):
      Fix ResourceWarning due to unclosed file resource.

Zach Burnett (1):
      rename `.readthedocs.yml` to `.readthedocs.yaml` (RTD docs indicate that `.readthedocs.yml` will be deprecated) (#68)
clrpackages pushed a commit to clearlinux-pkgs/pypi-keyring that referenced this issue Dec 21, 2022
…rsion 23.13.1

Andreas Maier (1):
      Fixed install error on Windows with Python 3.8+

Jason R. Coombs (22):
      GHA pretty env (#67)
      Pin mypy to '<0.990' due to realpython/pytest-mypy#141
      Remove the hyperlink for the Python versions badge. The PyPI badge is a better anchor for the hyperlink.
      Apply explicit_package_bases for mypy and unpin the version. Ref python/mypy#14057.
      Update tidelift boilerplate with proper reference.
      Add jaraco to funding.
      Add Python 3.12 to matrix. Only test 3.8-3.10 on Linux.
      Disable flake8 on Python 3.12. Workaround for tholo/pytest-flake8#87.
      Honor ResourceWarnings. Fixes jaraco/skeleton#73.
      Remove PSF license. It wasn't really valid in this form anyway. Fixes #607.
      tox 4 requires a boolean value, so use '1' to FORCE_COLOR. Fixes jaraco/skeleton#74.
      Remove unnecessary shebang and encoding header in docs conf.
      Prevent Python 3.12 from blocking checks.
      Update changelog
      Declare choices using choices keyword. Ref #611.
      Move all completion logic into a completion module.
      Move zsh to its own file and load it using importlib resources.
      Update README to use imperative voice. Add consideration about macOS Homebrew on Apple Silicon. Corrected typos. Updated to match style of other sections. Moved completions into its own section.
      Update changelog
      Add test capturing failed expectation. Ref #573.
      Delete the password even if blank. Fixes #573.
      Update changelog. Ref #573.

Wu Zhenyu (1):
      Fix #608

Zach Burnett (1):
      rename `.readthedocs.yml` to `.readthedocs.yaml` (RTD docs indicate that `.readthedocs.yml` will be deprecated) (#68)
clrpackages pushed a commit to clearlinux-pkgs/pypi-importlib_metadata that referenced this issue Dec 21, 2022
…1.0 to version 5.2.0

Jason R. Coombs (6):
      Honor ResourceWarnings. Fixes jaraco/skeleton#73.
      tox 4 requires a boolean value, so use '1' to FORCE_COLOR. Fixes jaraco/skeleton#74.
      Remove unnecessary shebang and encoding header in docs conf.
      Prevent Python 3.12 from blocking checks.
      Build docs in CI, including sphinx-lint.
      Mark `PackageMetadata.__getitem__` as deprecated for missing values. Ref #371.
clrpackages pushed a commit to clearlinux-pkgs/pypi-tempora that referenced this issue Jan 3, 2023
…ion 5.2.0

Jason R. Coombs (10):
      Honor ResourceWarnings. Fixes jaraco/skeleton#73.
      tox 4 requires a boolean value, so use '1' to FORCE_COLOR. Fixes jaraco/skeleton#74.
      Remove unnecessary shebang and encoding header in docs conf.
      Prevent Python 3.12 from blocking checks.
      Build docs in CI, including sphinx-lint.
      Put tidelift docs dependency in its own section to limit merge conflicts.
      Update badge for 2023
      Update changelog
      Move tests out of the package
      Remove dependency on jaraco.functools.
clrpackages pushed a commit to clearlinux-pkgs/pypi-setuptools that referenced this issue Jan 14, 2023
…version 65.7.0

Anderson Bravalheri (9):
      Fix getattr statement
      Add news fragment
      Update failing test due to latest versions of pip_run
      Docs: Replace failing reference of DIST_EXTRA_CONFIG
      Docs: Ignore DIST_EXTRA_CONFIG missing ref
      [Docs] Add migration for `distutils.core.Command`
      Improve code formatting
      Docs: Modify table for tool.setuptools.dynamic to mention content-type
      Bump version: 65.6.3 → 65.7.0

Andrzej Kaczmarczyk (3):
      Catching the exception of utime in order to provide a path to the file that was subject to the utime call; originally, the exception from utime does not point to this filepath. Ref #3667.
      Test added. Ref #3667.
      Added a news fragment in changelog.d. Ref  #3667.

Demian Brecht (2):
      add htmlcov to FlatLayoutModuleFinder.DEFAULT_EXCLUDE
      added changelog entry

Jason R. Coombs (16):
      Add Python 3.12 to matrix. Only test 3.8-3.10 on Linux.
      Disable flake8 on Python 3.12. Workaround for tholo/pytest-flake8#87.
      Honor ResourceWarnings. Fixes jaraco/skeleton#73.
      tox 4 requires a boolean value, so use '1' to FORCE_COLOR. Fixes jaraco/skeleton#74.
      Remove unnecessary shebang and encoding header in docs conf.
      Prevent Python 3.12 from blocking checks.
      Default to local distutils unless specified.  Fixes #3726.
      Enable tests on Python 3.12, as they're allowed to fail.
      Enable tests on Python 3.11, no longer failing. Fixes #3365.
       Fade to black.
      xfail tests on Python 3.12+ for older pips. Ref #3727.
      xfail more tests on Python 3.12+ for older pips. Ref #3727.
      Add support for testing pip<23 and drop support for pip<20.
      Build docs in CI, including sphinx-lint.
      Put tidelift docs dependency in its own section to limit merge conflicts.
      Update badge for 2023

Max Bachmann (1):
      fix documentation for dynamic build dependencies

Mike Taves (1):
      Improve example docs for setup.cfg and pyproject.toml
clrpackages pushed a commit to clearlinux-pkgs/pypi-jaraco.context that referenced this issue Jan 23, 2023
…to version 4.2.1

Jason R. Coombs (10):
      Add Python 3.12 to matrix. Only test 3.8-3.10 on Linux.
      Disable flake8 on Python 3.12. Workaround for tholo/pytest-flake8#87.
      Honor ResourceWarnings. Fixes jaraco/skeleton#73.
      tox 4 requires a boolean value, so use '1' to FORCE_COLOR. Fixes jaraco/skeleton#74.
      Remove unnecessary shebang and encoding header in docs conf.
      Prevent Python 3.12 from blocking checks.
      Build docs in CI, including sphinx-lint.
      Put tidelift docs dependency in its own section to limit merge conflicts.
      Update badge for 2023
      Add tests for pushd. Increases coverage from 66% to 71%.
clrpackages pushed a commit to clearlinux-pkgs/pypi-zipp that referenced this issue Jan 30, 2023
…n 3.12.0

Gregory P. Smith (1):
      python/cpython#101144: Allow open and read_text encoding to be positional. (python/cpython#101145)

Jason R. Coombs (13):
      Honor ResourceWarnings. Fixes jaraco/skeleton#73.
      tox 4 requires a boolean value, so use '1' to FORCE_COLOR. Fixes jaraco/skeleton#74.
      Remove unnecessary shebang and encoding header in docs conf.
      Prevent Python 3.12 from blocking checks.
      Build docs in CI, including sphinx-lint.
      Put tidelift docs dependency in its own section to limit merge conflicts.
      Update badge for 2023
      Update changelog. Ref python/cpython#101144.
      Invoke test_encoding_warnings in-process, but skip when warn_default_encoding is not set. Re-use alpharep fixture for the file.
      Provide 'sys.flags.warn_default_encoding' for the tests to skip prior to 3.10.
      Due to mypy, it's not possible to patch the value, so just be lenient in access.
      Prefer simple asserts
      Replace trailing comment with a comment on a separate line.
clrpackages pushed a commit to clearlinux-pkgs/pypi-jaraco.text that referenced this issue Jan 30, 2023
… version 3.11.1

Jason R. Coombs (15):
      Add Python 3.12 to matrix. Only test 3.8-3.10 on Linux.
      Disable flake8 on Python 3.12. Workaround for tholo/pytest-flake8#87.
      Honor ResourceWarnings. Fixes jaraco/skeleton#73.
      tox 4 requires a boolean value, so use '1' to FORCE_COLOR. Fixes jaraco/skeleton#74.
      Remove unnecessary shebang and encoding header in docs conf.
      Prevent Python 3.12 from blocking checks.
      Build docs in CI, including sphinx-lint.
      Put tidelift docs dependency in its own section to limit merge conflicts.
      Update badge for 2023
      ALLOW_UNICODE no longer needed on Python 3. As a result, ELLIPSES is also now enabled by default.
      Fix spelling error.
      Enable default encoding warning where available. See PEP 597.
      Suppress EncodingWarning in pytest_black. Workaround for shopkeep/pytest-black#67.
      Exempt warning. Workaround for realpython/pytest-mypy#152
      Supply encoding parameter, suppressing EncodingWarnings.
clrpackages pushed a commit to clearlinux-pkgs/pypi-jaraco.functools that referenced this issue Feb 21, 2023
…2 to version 3.6.0

Jason R. Coombs (28):
      Update documentation of call_aside detailing the motivation and benefits of the construct.
      Adopt furo theme for docs.
      Indicate to use latest Python version (workaround for readthedocs/readthedocs.org/#9623). Requires also specifying the OS version (workaround for readthedocs/readthedocs.org#9635).
      GHA pretty env (#67)
      Pin mypy to '<0.990' due to realpython/pytest-mypy#141
      Remove the hyperlink for the Python versions badge. The PyPI badge is a better anchor for the hyperlink.
      Apply explicit_package_bases for mypy and unpin the version. Ref python/mypy#14057.
      Add Python 3.12 to matrix. Only test 3.8-3.10 on Linux.
      Disable flake8 on Python 3.12. Workaround for tholo/pytest-flake8#87.
      Honor ResourceWarnings. Fixes jaraco/skeleton#73.
      tox 4 requires a boolean value, so use '1' to FORCE_COLOR. Fixes jaraco/skeleton#74.
      Remove unnecessary shebang and encoding header in docs conf.
      Prevent Python 3.12 from blocking checks.
      Build docs in CI, including sphinx-lint.
      Restore doctests by utilizing importlib. Ref pytest-dev/pytest#3396.
      Put tidelift docs dependency in its own section to limit merge conflicts.
      Update badge for 2023
      ALLOW_UNICODE no longer needed on Python 3. As a result, ELLIPSES is also now enabled by default.
      Enable default encoding warning where available. See PEP 597.
      Suppress EncodingWarning in pytest_black. Workaround for shopkeep/pytest-black#67.
      Exempt warning. Workaround for realpython/pytest-mypy#152
      Add #upstream markers for filtered warnings. Add filter for platform module (ref python/cpython#100750).
      Remove reference to EncodingWarning as it doesn't exist on some Pythons.
      Revert "exclude build env from cov reporting (jaraco/skeleton#60)"
      Disable couldnt-parse warnings. Prescribed workaround for nedbat/coveragepy#1392. Fixes python/importlib_resources#279 and fixes jaraco/skeleton#56.
      Renamed 'call_aside' to 'invoke'. Fixes #21.
      Replace 'called_with' with 'assert_called_with'.
      🚡 Toil the docs.

Zach Burnett (1):
      rename `.readthedocs.yml` to `.readthedocs.yaml` (RTD docs indicate that `.readthedocs.yml` will be deprecated) (#68)
clrpackages pushed a commit to clearlinux-pkgs/pypi-jaraco.collections that referenced this issue Mar 25, 2023
…8.0 to version 3.9.0

Jason R. Coombs (24):
      Pin mypy to '<0.990' due to realpython/pytest-mypy#141
      Remove the hyperlink for the Python versions badge. The PyPI badge is a better anchor for the hyperlink.
      Apply explicit_package_bases for mypy and unpin the version. Ref python/mypy#14057.
      Add Python 3.12 to matrix. Only test 3.8-3.10 on Linux.
      Disable flake8 on Python 3.12. Workaround for tholo/pytest-flake8#87.
      Honor ResourceWarnings. Fixes jaraco/skeleton#73.
      tox 4 requires a boolean value, so use '1' to FORCE_COLOR. Fixes jaraco/skeleton#74.
      Remove unnecessary shebang and encoding header in docs conf.
      Prevent Python 3.12 from blocking checks.
      Build docs in CI, including sphinx-lint.
      Restore doctests by utilizing importlib. Ref pytest-dev/pytest#3396.
      Put tidelift docs dependency in its own section to limit merge conflicts.
      Update badge for 2023
      ALLOW_UNICODE no longer needed on Python 3. As a result, ELLIPSES is also now enabled by default.
      Enable default encoding warning where available. See PEP 597.
      Suppress EncodingWarning in pytest_black. Workaround for shopkeep/pytest-black#67.
      Exempt warning. Workaround for realpython/pytest-mypy#152
      Remove superfluous str calls.
      Add #upstream markers for filtered warnings. Add filter for platform module (ref python/cpython#100750).
      Remove reference to EncodingWarning as it doesn't exist on some Pythons.
      Revert "exclude build env from cov reporting (jaraco/skeleton#60)"
      Disable couldnt-parse warnings. Prescribed workaround for nedbat/coveragepy#1392. Fixes python/importlib_resources#279 and fixes jaraco/skeleton#56.
      🚡 Toil the docs.
      Use set intersection len for DictFilter. Fixes #12.
clrpackages pushed a commit to clearlinux-pkgs/pypi-inflect that referenced this issue Apr 11, 2023
…ion 6.0.4

James Addison (4):
      Add illustrative test coverage
      Apply a minimal fix to allow the test cases to pass
      Test coverage: ordinals for real numbers
      Code style: apply updated black v23 style rules

Jason R. Coombs (33):
      Pin mypy to '<0.990' due to realpython/pytest-mypy#141
      Remove the hyperlink for the Python versions badge. The PyPI badge is a better anchor for the hyperlink.
      Apply explicit_package_bases for mypy and unpin the version. Ref python/mypy#14057.
      Add Python 3.12 to matrix. Only test 3.8-3.10 on Linux.
      Disable flake8 on Python 3.12. Workaround for tholo/pytest-flake8#87.
      Honor ResourceWarnings. Fixes jaraco/skeleton#73.
      tox 4 requires a boolean value, so use '1' to FORCE_COLOR. Fixes jaraco/skeleton#74.
      Remove unnecessary shebang and encoding header in docs conf.
      Prevent Python 3.12 from blocking checks.
      Build docs in CI, including sphinx-lint.
      Put tidelift docs dependency in its own section to limit merge conflicts.
      Update badge for 2023
      ALLOW_UNICODE no longer needed on Python 3. As a result, ELLIPSES is also now enabled by default.
      Add test capturing missed expectation in leading abbreviations. Ref #136.
      Enable default encoding warning where available. See PEP 597.
      Suppress EncodingWarning in pytest_black. Workaround for shopkeep/pytest-black#67.
      Exempt warning. Workaround for realpython/pytest-mypy#152
      Add #upstream markers for filtered warnings. Add filter for platform module (ref python/cpython#100750).
      Remove reference to EncodingWarning as it doesn't exist on some Pythons.
      Revert "exclude build env from cov reporting (jaraco/skeleton#60)"
      Disable couldnt-parse warnings. Prescribed workaround for nedbat/coveragepy#1392. Fixes python/importlib_resources#279 and fixes jaraco/skeleton#56.
      Remove xfail now that test passes. Ref #179.
      Remove extra noqa. Fixes #177.
      Fix ResourceWarnings in tests.
      Remove commented code.
      Inline getwords
      Remove commented code.
      Extract filter function for suitable_for_pl_si
      Parameterize function instead of repeating one's self.
      Parameterize 'words' in test_pl_si
      Inline words parameterization, as it only has two words.
      Revert "Remove extra noqa. Fixes #177."
      Update changelog.

Khuyen Tran (1):
      Change the parameter for gender in README

kimgerdes (1):
      fix a/an issue 136 as indicated by tonywu7
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

No branches or pull requests

1 participant