Skip to content

"E999" -> "invalid-syntax" since ruff 0.8.0 (?) #111

@Nomos11

Description

@Nomos11

Using the recently added capabilities for ruff linting within the Spyder IDE, I noticed that syntax errors receive "warning" severity rather than "error". It appears to me that this can potentially be traced back to the classification in plugin.py.

Error code E999 was removed in ruff 0.8.0 and now seems to be called "invalid-syntax". Replacing check.code == "E999" with check.code == "invalid-syntax" in plugin.py seems to do the job at promoting the syntax error to an error severity - or am i missing something here as to why the current behavior might be intended?

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