Skip to content

Outdated usage of ruff #11230

@spoxii

Description

@spoxii

Relevant Section

You can apply ruff manually to one or more files with the following command:

ruff -l 120 <path/to/file(s)>

The Issue

This no longer works with recent versions of ruff (tested with v0.12.8).

error: 'ruff' requires a subcommand but one was not provided

There is also no longer a -l argument for the maximum line length.

error: unexpected argument '-l' found

The Fix

The new correct usage is:

ruff format --length-line 120 <path/to/file(s)>

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:contributingIssues and PRs related to the Contributing/Development section of the documentationbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions