-
Notifications
You must be signed in to change notification settings - Fork 921
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
ruff detects E902 when using special character in code #11876
Comments
Can you try changing the encoding to UTF8 in the bottom-toolbar (click Windows-1252). Ruff only supports UTF8 encoded files. Related issue: #6791 |
ok, that did the trick. but what about other encodings? we have a system which does not support python code in utf-8... |
Ruff doesn't support other encodings today. Can you tell us more about your system that doesn't support utf8? What python version are you using? |
Hi, |
I'm going to call this unsupported but happy to hear more about your use-case and whether we can help with it in ways other than supporting alternate encodings. |
ruff settings non special simply
ruff check .\test.py
version 0.4.8
Output. Here interesting: the syntax bug is not reported, instead ruff stops.
![image](https://private-user-images.githubusercontent.com/30908027/339793911-8af8f148-b61c-48fe-b6f9-af9b7df38150.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzODQyMTksIm5iZiI6MTcxOTM4MzkxOSwicGF0aCI6Ii8zMDkwODAyNy8zMzk3OTM5MTEtOGFmOGYxNDgtYjYxYy00OGZlLWI2ZjktYWY5YjdkZjM4MTUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDA2MzgzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyMjc3ZGU1MTllOThmYjI2NDI4MTQ4ODE4MDQzMmY2YjRmNDk4NTk1NWQxMDNkNDVlYWFiMDRkZDViNjI3NmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uR1XKqkNHX_LuXah628SzM7TBgwfcwsAnSJ-_UbiuJg)
The text was updated successfully, but these errors were encountered: