Skip to content

ruff format ignores notebooks unless specified #12185

@Wazarr

Description

@Wazarr

Hi,

I have noticed when using the CLI that doing ruff format . ignores Jupyter notebooks.
I believe this a deviation from black, which effectively formats notebooks with black ., with the right dependencies installed.

It's only possible to format notebooks when the filename is provided, which forces me to iterate over files to format all my notebooks.
I have looked at the documentation and other issues, and I'm on the latest version of Ruff (v0.5.0).

Would it be possible to add an option to fix this issue?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions