Skip to content

Provide a way to "force" include an open document even if it is excluded #414

Open
@mounirmesselmeni

Description

@mounirmesselmeni

I was trying to pass --no-force-exclude to Ruff format but it seems to be ignored.

image

Output from the extension:

Running Ruff with: /home/app/venv/bin/ruff ['format', '--force-exclude', '--quiet', '--stdin-filename', '/app/core/migrations/0011_populate_something.py']

Use case:
I wanted to be able (while generally ignored migrations files), when adding Django migrations by hand, to be able to format them using Ruff.
That was the case with Black and black extension before switching to Ruff, I believe the black extension was ignoring the ignore list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions