Skip to content

run ruff via nbqa on notebooks - #904

Merged
minrk merged 2 commits into
ipython:mainfrom
minrk:nbqa
Oct 29, 2024
Merged

minrk merged 2 commits into
ipython:mainfrom
minrk:nbqa

Conversation

@minrk

@minrk minrk commented Oct 29, 2024

Copy link
Copy Markdown
Member

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.

minrk added 2 commits October 29, 2024 10:44
nbqa can handle cell magics, where ruff cannot (it's not configurable, at least)
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