mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
Avoid B015
,B018
for last expression in a cell (#8815)
## Summary This PR updates `B015` and `B018` to ignore last top-level expressions in each cell of a Jupyter Notebook. Part of #8669 ## Test Plan Add test cases for both rules and update the snapshots.
This commit is contained in:
parent
727e389cac
commit
5b726f70f4
11 changed files with 454 additions and 1 deletions
|
@ -163,6 +163,7 @@ pub fn check_path(
|
|||
path,
|
||||
package,
|
||||
source_type,
|
||||
cell_offsets,
|
||||
));
|
||||
}
|
||||
if use_imports {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue