[flake8-blind-except] Fix BLE001 false-positive on raise ... from None#19755
[flake8-blind-except] Fix BLE001 false-positive on raise ... from None#19755ntBre merged 1 commit intoastral-sh:mainfrom
flake8-blind-except] Fix BLE001 false-positive on raise ... from None#19755Conversation
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| BLE001 | 1 | 0 | 1 | 0 | 0 |
Linter (preview)
ℹ️ ecosystem check detected linter changes. (+0 -1 violations, +0 -0 fixes in 1 projects; 54 projects unchanged)
zulip/zulip (+0 -1 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview --select ALL
- tools/lib/provision.py:386:20: BLE001 Do not catch blind exception: `BaseException`
Changes by rule (1 rules affected)
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| BLE001 | 1 | 0 | 1 | 0 | 0 |
66c1a31 to
84cead4
Compare
flake8-blind-except] Enhance BLE001: fix docs; light speed-up; improve readabilityflake8-blind-except] Fix BLE001: false-positive trigger with raise ... from None
ntBre
left a comment
There was a problem hiding this comment.
Looks good to me, thank you! And the change in the ecosystem report is exactly like the issue.
|
I think the conflicts are just from recent changes to our diagnostic format. Could you just rerun the tests locally and accept the new snapshots? That's probably the easiest way to resolve them. |
Thank you! Done |
flake8-blind-except] Fix BLE001: false-positive trigger with raise ... from Noneflake8-blind-except] Fix BLE001 false-positive on raise ... from None
* main: Feature/build riscv64 bin (#19819) [ty] Add caching to `CodeGeneratorKind::matches()` (#19912) [ty] Rename `functionArgumentNames` to `callArgumentNames` inlay hint setting (#19911) [ty] Default `ty.inlayHints.*` server settings to true (#19910) [ty] Remove py-fuzzer skips for seeds that are no longer slow (#19906) [ty] fix deferred name loading in PEP695 generic classes/functions (#19888) [ty] Add some additional type safety to `CycleDetector` (#19903) [`flake8-blind-except`] Fix `BLE001` false-positive on `raise ... from None` (#19755) [ty] resolve docstrings for modules (#19898)
Summary
BLE001logic for clarity and minor speed-up.BLE001docs claimed it catches bareexcept:s, but it doesn't).from Nonecause:main branch
this change
cargo run -p ruff -- check somefile.py --no-cache --select=BLE001Test Plan
raise X from Yclauseraise X from Noneclause