Skip to content

Enable PT001 rule to prvoider tests#55935

Merged
Lee-W merged 6 commits into
apache:mainfrom
xchwan:enable_PT011_rule_3
Sep 22, 2025
Merged

Enable PT001 rule to prvoider tests#55935
Lee-W merged 6 commits into
apache:mainfrom
xchwan:enable_PT011_rule_3

Conversation

@xchwan

@xchwan xchwan commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

issue: Enable Even More PyDocStyle Checks #40567
@ferruzzi
This PR is for enable PT011 rule:
PT011: all instances of pytest.raises should include a match term to make sure they are catching the right error.
https://docs.astral.sh/ruff/rules/pytest-raises-too-broad/
There are 102 files changes is need.
So, I separate to many PR, which contains about 5 file changes for easy review.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Signed-off-by: Xch1 <qchwan@gmail.com>
Signed-off-by: Xch1 <qchwan@gmail.com>
Signed-off-by: Xch1 <qchwan@gmail.com>
Signed-off-by: Xch1 <qchwan@gmail.com>
Signed-off-by: Xch1 <qchwan@gmail.com>
Signed-off-by: Xch1 <qchwan@gmail.com>
@Lee-W Lee-W changed the title Enable pt011 rule 3 Enable PT001 rule to prvoider tests Sep 22, 2025
@Lee-W Lee-W merged commit af7a42a into apache:main Sep 22, 2025
83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants