Skip to content

Enable PT011 rule to prvoider tests - #56277

Merged
jscheffl merged 11 commits into
apache:mainfrom
xchwan:enable_PT011_rule_9
Oct 1, 2025
Merged

Enable PT011 rule to prvoider tests#56277
jscheffl merged 11 commits into
apache:mainfrom
xchwan:enable_PT011_rule_9

Conversation

@xchwan

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>
@jscheffl

Copy link
Copy Markdown
Contributor

CI error is unrelated, merging

@jscheffl
jscheffl merged commit a87cfe8 into apache:mainOct 1, 2025
77 of 78 checks passed
dabla pushed a commit to dabla/airflow that referenced this pull request Oct 12, 2025
* modify test_ftp
Signed-off-by: Xch1 <qchwan@gmail.com>
* modify test_sql
Signed-off-by: Xch1 <qchwan@gmail.com>
* modify test_exasol
Signed-off-by: Xch1 <qchwan@gmail.com>
* modify test_es_task_handler
Signed-off-by: Xch1 <qchwan@gmail.com>
* modify test_edge_executor
Signed-off-by: Xch1 <qchwan@gmail.com>
* fix test_edge_executor match
Signed-off-by: Xch1 <qchwan@gmail.com>
* fix test_edge_executor match
Signed-off-by: Xch1 <qchwan@gmail.com>
* fix test_edge_executor match
Signed-off-by: Xch1 <qchwan@gmail.com>
---------
Signed-off-by: Xch1 <qchwan@gmail.com>
Sign up for freeto 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.

4 participants

@xchwan@jscheffl@ferruzzi@prdai