Avoid E703 for last expression in a cell (#8821)

## Summary

This PR updates the `E703` rule to avoid flagging any semicolons if
they're present after the last expression in a notebook cell. These are
intended to hide the cell output.

Part of #8669 

## Test Plan

Add test notebook and update the snapshots.
This commit is contained in:
Dhruv Manilawala 2023-11-23 07:40:57 -06:00 committed by GitHub
parent 5b726f70f4
commit 8365d2e0fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 212 additions and 15 deletions

View file

@ -108,7 +108,8 @@ pub fn check_path(
locator,
indexer,
settings,
source_type.is_stub(),
source_type,
source_kind.as_ipy_notebook().map(Notebook::cell_offsets),
));
}