Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX: identify unidentified variables in notebooks #223

Closed
wants to merge 1 commit into from

Conversation

redeboer
Copy link
Member

@redeboer redeboer commented Dec 6, 2023

Ruff was ignoring F821 in Jupyter notebooks. This is not a good idea, because one often makes typos and then only realizes that a variable name is mistyped only once the notebook is run. Now, typos in variable names are flagged.

The reason for ignoring F821 is that cell magic sometimes makes it look like a variable is not defined, which resulted in many false-positives. There is no good solution for this, so the error is now ignored for specific notebooks.

@redeboer redeboer added the 🖱️ DX Improvements to the Developer Experience label Dec 6, 2023
@redeboer redeboer self-assigned this Dec 6, 2023
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@redeboer redeboer marked this pull request as ready for review December 6, 2023 20:46
@redeboer redeboer enabled auto-merge (squash) December 6, 2023 20:48
@redeboer redeboer closed this in #224 Dec 9, 2023
auto-merge was automatically disabled December 9, 2023 00:59

Pull request was closed

redeboer added a commit that referenced this pull request Dec 9, 2023
* DX: gitignore `.jupyter_ystore.db`
  This is a file produced by `jupyter-collaboration`
* DX: gitignore `oryx-build-commands.txt`
  Produced when running on GitHub Codespaces
* DX: identify unidentified variables in notebooks (#223)
* MAINT: clean up `conf.py` with new Sphinx extensions
* MAINT: remove `ypy-websocket` version constraints

---------

Co-authored-by: GitHub <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@redeboer redeboer deleted the F821-undefined-name branch December 9, 2023 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖱️ DX Improvements to the Developer Experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant