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:
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.