-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Panic] Expected docstring to start with a valid triple- or single-quote prefix #3336
Comments
Found minimal example
|
Thanks! |
That minimal example doesn't panic for me, but I'll try for the full repro based on the zip file (thanks for that). |
This is a very useful exercise! |
I forgot about config file(by default there is no crash)
|
Is it possible that the file uses CR line endings? (Not CRLF, but CR.) I can't repro based on the snippet alone. |
Alternatively, if you know which file this is in, that works too. |
In notepad I see that file uses CL line ending and crash still happens - |
Awesome, thank you, that I can reproduce. |
There's a zero-width non-breaking space at the start of the file... |
We should handle this gracefully, but it's typically an encoding or corruption error AFAICT? https://www.freecodecamp.org/news/a-quick-tale-about-feff-the-invisible-character-cd25cd4630e7/ |
Ruff 0.0.254
Steps to reproduce
causes to crash with message
Requirements file contains ~ 1000 the most popular python packages, mostly < 20 MB in size(I disabled some packages, that took need to download 500MB like nvidia cuda)
I suggest to check even more packages from time to time because this is quite easy way to find possible bugs in real code.
The text was updated successfully, but these errors were encountered: