Skip to content

N999 continues to complain about capital letters in old module name even after module is renamed to lowercase #913

@cwilson-mdmi

Description

@cwilson-mdmi

When a module is named something like "TEST.py", Ruff shows the error: Invalid module name: 'TEST' Ruff N999. But when I rename it to "test.py", Ruff continues to show the same error message, still with the previous module name:

Image

This is on Windows 11.

I've tried restarting the Ruff server, reloading/restarting VS Code, renaming to an intermediate file name first, and clearing my venv's cache. None had any effect.

I eventually resolved the issue for myself by deleting my project folder when my working directory was clean and re-cloning the repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-mreNeeds more information for reproduction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions