Python: Ruff (code linter) not working at all

Problem description

Replit python repls have the language server pyright-extended.
However, the linting functionality of it (mostly provided by Ruff) does not work. (Sorting imports, warning about bad coding practices/styling.)

The other features such as definitions/hover, static analysis (type checking), and formatting work fine (provided by pyright, pyright-langserver, yapf).

While pyright can fill a few of the roles that ruff did, many features are now absent such as import sorting.

Expected behavior

Warn about trailing whitespace, can automatically sort imports, etc.

Actual behavior

No highlighting or warnings from ruff. The light bulb that allows for ruff commands also seems disabled. (Everything else is fine.)

Steps to reproduce

Example repl (forked from main python template):
https://replit.com/@NuclearPasta0/test-ruff#main.py

Does not highlight or warn about the many bad coding practices in the program.

Browser

chrome

OS

mac, ChromeOS

Device if mobile

N/A

Plan

free

5 Likes

Thank you for the report. We’ve reproduced the problem and we’re looking into fixing it.

3 Likes

Sorry for the disruption; this should be working again. We’ll be figuring out the root cause and adding tests to make sure it doesn’t happen again.

6 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.