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

run ruff via nbqa on notebooks #904

Merged
merged 2 commits into from
Oct 29, 2024
Merged

run ruff via nbqa on notebooks #904

merged 2 commits into from
Oct 29, 2024

Conversation

minrk
Copy link
Member

@minrk minrk commented Oct 29, 2024

ruff sort of has support for notebooks, but ~only if you don't use magics

in particular, it doesn't understand %%px and apparently unlike nbqa, it can't (yet) be taught about additional python-code magics.

nbqa can handle cell magics, where ruff cannot (it's not configurable, at least)
@minrk minrk merged commit d7713f6 into ipython:main Oct 29, 2024
15 checks passed
@minrk minrk deleted the nbqa branch October 29, 2024 10:15
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.

1 participant