Skip to content

VS Code extension: Depraction of ruff.args have disabled the capacity for custom unfixable rules #16392

@KerberosMorphy

Description

@KerberosMorphy

Question

I have some rule that I want my pre-commit to fix but not my editor while I'm developing (as unused import rules or commented code rules).

Previously, I used ruff.args to specify those rules as unfixable.

Since the migration and deprecation of ruff.args, this option doesn't seem to exist anymore.

Examples

Let's say you have these settings in VS Code:

{
    "ruff.lint.args": ["--config=/app/pyproject.toml", "--unfixable=F401,F841,ERA001"],
}

I would have expected a migration as:

{
    "ruff.configuration": "/app/pyproject.toml",
    "ruff.lint.unfixable": ["F401", "F841", "ERA001"]
}

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions