Skip to content

Recode TRY302 to TRY203#13502

Merged
AlexWaygood merged 1 commit intoruff-0.7from
zb/try203
Oct 8, 2024
Merged

Recode TRY302 to TRY203#13502
AlexWaygood merged 1 commit intoruff-0.7from
zb/try203

Conversation

@zanieb
Copy link
Copy Markdown
Member

@zanieb zanieb commented Sep 24, 2024

Closes #13492

@zanieb zanieb added this to the v0.7 milestone Sep 24, 2024
@github-actions
Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+2 -2 violations, +0 -0 fixes in 1 projects; 53 projects unchanged)

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

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

+ airflow/providers/cncf/kubernetes/hooks/kubernetes.py:493:9: TRY203 Remove exception handler; error is immediately re-raised
- airflow/providers/cncf/kubernetes/hooks/kubernetes.py:493:9: TRY302 Remove exception handler; error is immediately re-raised
+ airflow/providers/cncf/kubernetes/operators/pod.py:802:9: TRY203 Remove exception handler; error is immediately re-raised
- airflow/providers/cncf/kubernetes/operators/pod.py:802:9: TRY302 Remove exception handler; error is immediately re-raised

Changes by rule (2 rules affected)

code total + violation - violation + fix - fix
TRY203 2 2 0 0 0
TRY302 2 0 2 0 0

Linter (preview)

ℹ️ ecosystem check detected linter changes. (+2 -2 violations, +0 -0 fixes in 1 projects; 53 projects unchanged)

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

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

+ airflow/providers/cncf/kubernetes/hooks/kubernetes.py:493:9: TRY203 Remove exception handler; error is immediately re-raised
- airflow/providers/cncf/kubernetes/hooks/kubernetes.py:493:9: TRY302 Remove exception handler; error is immediately re-raised
+ airflow/providers/cncf/kubernetes/operators/pod.py:802:9: TRY203 Remove exception handler; error is immediately re-raised
- airflow/providers/cncf/kubernetes/operators/pod.py:802:9: TRY302 Remove exception handler; error is immediately re-raised

Changes by rule (2 rules affected)

code total + violation - violation + fix - fix
TRY203 2 2 0 0 0
TRY302 2 0 2 0 0

@AlexWaygood AlexWaygood changed the base branch from main to ruff-0.7 October 8, 2024 13:13
@zanieb zanieb marked this pull request as ready for review October 8, 2024 15:29
@AlexWaygood AlexWaygood merged commit 5ab905c into ruff-0.7 Oct 8, 2024
@AlexWaygood AlexWaygood deleted the zb/try203 branch October 8, 2024 16:41
AlexWaygood pushed a commit that referenced this pull request Oct 17, 2024
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

Successfully merging this pull request may close these issues.

Recode TRY302 to TRY203

2 participants