Skip to content

Stabilize pytest-warns-too-broad (PT030) #18568

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

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

dylwil3
Copy link
Collaborator

@dylwil3 dylwil3 commented Jun 8, 2025

No description provided.

@dylwil3 dylwil3 added this to the v0.12 milestone Jun 8, 2025
@dylwil3 dylwil3 added the rule Implementing or modifying a lint rule label Jun 8, 2025
Copy link
Contributor

github-actions bot commented Jun 8, 2025

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+34 -0 violations, +0 -0 fixes in 5 projects; 50 projects unchanged)

DisnakeDev/disnake (+3 -0 violations, +0 -0 fixes)

+ tests/test_embeds.py:473:23: PT030 `pytest.warns(DeprecationWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/test_embeds.py:475:23: PT030 `pytest.warns(DeprecationWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/test_embeds.py:477:23: PT030 `pytest.warns(DeprecationWarning)` is too broad, set the `match` parameter or use a more specific warning

apache/airflow (+7 -0 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --no-preview --select ALL

+ airflow-core/tests/unit/core/test_configuration.py:1043:31: PT030 `pytest.warns(DeprecationWarning)` is too broad, set the `match` parameter or use a more specific warning
+ airflow-core/tests/unit/core/test_configuration.py:1047:31: PT030 `pytest.warns(DeprecationWarning)` is too broad, set the `match` parameter or use a more specific warning
+ airflow-core/tests/unit/core/test_configuration.py:1112:35: PT030 `pytest.warns(DeprecationWarning)` is too broad, set the `match` parameter or use a more specific warning
+ providers/celery/tests/unit/celery/executors/test_celery_executor.py:263:31: PT030 `pytest.warns(DeprecationWarning)` is too broad, set the `match` parameter or use a more specific warning
+ providers/cncf/kubernetes/tests/unit/cncf/kubernetes/executors/test_kubernetes_executor.py:1262:27: PT030 `pytest.warns(DeprecationWarning)` is too broad, set the `match` parameter or use a more specific warning
+ task-sdk/tests/task_sdk/bases/test_operator.py:253:27: PT030 `pytest.warns(DeprecationWarning)` is too broad, set the `match` parameter or use a more specific warning
+ task-sdk/tests/task_sdk/definitions/test_asset.py:120:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning

bokeh/bokeh (+11 -0 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --no-preview --select ALL

+ tests/unit/bokeh/models/test_plots.py:81:27: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/unit/bokeh/models/test_sources.py:765:27: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/unit/bokeh/models/test_sources.py:771:27: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/unit/bokeh/models/test_sources.py:777:27: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/unit/bokeh/models/test_sources.py:783:27: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/unit/bokeh/plotting/test_graph.py:122:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/unit/bokeh/plotting/test_graph.py:131:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/unit/bokeh/plotting/test_graph.py:141:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/unit/bokeh/plotting/test_graph.py:175:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/unit/bokeh/util/test_token.py:217:27: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ tests/unit/bokeh/util/test_token.py:232:31: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning

langchain-ai/langchain (+6 -0 violations, +0 -0 fixes)

+ libs/core/tests/unit_tests/prompts/test_few_shot.py:269:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ libs/core/tests/unit_tests/prompts/test_few_shot.py:287:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ libs/core/tests/unit_tests/prompts/test_few_shot.py:314:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ libs/core/tests/unit_tests/prompts/test_prompt.py:512:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ libs/core/tests/unit_tests/prompts/test_prompt.py:529:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ libs/core/tests/unit_tests/prompts/test_prompt.py:546:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning

astropy/astropy (+7 -0 violations, +0 -0 fixes)

+ astropy/coordinates/tests/test_velocity_corrs.py:293:23: PT030 `pytest.warns(Warning)` is too broad, set the `match` parameter or use a more specific warning
+ astropy/io/ascii/tests/test_qdp.py:222:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ astropy/io/fits/hdu/compressed/tests/test_compressed.py:500:31: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ astropy/io/fits/tests/test_header.py:195:22: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ astropy/table/tests/test_table.py:2334:27: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning
+ astropy/units/tests/test_quantity_non_ufuncs.py:2029:27: PT030 `pytest.warns(DeprecationWarning)` is too broad, set the `match` parameter or use a more specific warning
+ astropy/wcs/wcsapi/tests/test_fitswcs.py:1151:23: PT030 `pytest.warns(UserWarning)` is too broad, set the `match` parameter or use a more specific warning

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
PT030 34 34 0 0 0

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre force-pushed the brent/release-0.12.0 branch from 0370d8a to 040fb6b Compare June 8, 2025 19:55
@ntBre ntBre requested a review from AlexWaygood as a code owner June 8, 2025 19:55
@ntBre ntBre force-pushed the brent/release-0.12.0 branch from 040fb6b to 9252447 Compare June 8, 2025 20:18
@AlexWaygood AlexWaygood removed their request for review June 8, 2025 20:27
@ntBre ntBre force-pushed the brent/release-0.12.0 branch from 9252447 to 829acf4 Compare June 9, 2025 00:22
@dylwil3 dylwil3 force-pushed the dylan/stabilize-pt030 branch from 6d4d171 to 82b4799 Compare June 9, 2025 13:04
@dylwil3 dylwil3 force-pushed the dylan/stabilize-pt030 branch from 82b4799 to f73fb2e Compare June 9, 2025 21:15
@dylwil3 dylwil3 merged commit 8ad022e into brent/release-0.12.0 Jun 9, 2025
7 checks passed
@dylwil3 dylwil3 deleted the dylan/stabilize-pt030 branch June 9, 2025 21:16
@dylwil3 dylwil3 mentioned this pull request Jun 9, 2025
2 tasks
ntBre pushed a commit that referenced this pull request Jun 10, 2025
ntBre pushed a commit that referenced this pull request Jun 11, 2025
ntBre pushed a commit that referenced this pull request Jun 11, 2025
ntBre pushed a commit that referenced this pull request Jun 12, 2025
ntBre pushed a commit that referenced this pull request Jun 16, 2025
ntBre pushed a commit that referenced this pull request Jun 17, 2025
ntBre pushed a commit that referenced this pull request Jun 17, 2025
carljm added a commit to MatthewMckee4/ruff that referenced this pull request Jun 17, 2025
…ence

* main: (71 commits)
  Bump 0.12.0 (astral-sh#18724)
  Revert "[ty] Offer "Did you mean...?" suggestions for unresolved `from` imports and unresolved attributes (astral-sh#18705)" (astral-sh#18721)
  [`flake8-return`] Stabilize only add `return None` at the end when fixing `implicit-return` (`RET503`) (astral-sh#18516)
  [`pyupgrade`] Stabilize `non-pep695-generic-function` (`UP047`) (astral-sh#18524)
  [`pyupgrade`] Stabilize `non-pep695-generic-class` (`UP046`) (astral-sh#18519)
  [`pandas-vet`] Deprecate `pandas-df-variable-name` (`PD901`) (astral-sh#18618)
  [`flake8-bandit`] Remove `suspicious-xmle-tree-usage` (`S320`) (astral-sh#18617)
  Stabilize `dataclass-enum` (`RUF049`) (astral-sh#18570)
  Stabilize `unnecessary-dict-index-lookup` (`PLR1733`) (astral-sh#18571)
  Remove rust-toolchain.toml from sdist (astral-sh#17925)
  Stabilize `starmap-zip` (`RUF058`) (astral-sh#18525)
  [`flake8-logging`] Stabilize `exc-info-outside-except-handler` (`LOG014`) (astral-sh#18517)
  [`pyupgrade`] Stabilize `non-pep604-annotation-optional` (`UP045`) and preview behavior for `non-pep604-annotation-union` (`UP007`) (astral-sh#18505)
  Stabilize `pytest-warns-too-broad` (`PT030`) (astral-sh#18568)
  Stabilize `for-loop-writes` (`FURB122`) (astral-sh#18565)
  Stabilize `pytest-warns-with-multiple-statements` (`PT031`) (astral-sh#18569)
  Stabilize `pytest-parameter-with-default-argument` (`PT028`) (astral-sh#18566)
  Stabilize `nan-comparison` (`PLW0177`) (astral-sh#18559)
  Stabilize `check-and-remove-from-set` (`FURB132`) (astral-sh#18560)
  Stabilize `unnecessary-round` (`RUF057`) (astral-sh#18563)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants