You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a python file with print('Привет, бандиты!') unicode contents
Try to run flake8 your_file.py
It will fail with something like this:
c:\users\appveyor\appdata\local\pypoetry\cache\virtualenvs\wemake-python-styleguide-py3.6\lib\site-packages\flake8\checker.py:451: in run_check
return plugin["plugin"](**arguments)
c:\users\appveyor\appdata\local\pypoetry\cache\virtualenvs\wemake-python-styleguide-py3.6\lib\site-packages\flake8_bandit.py:35: in __init__
self._load_source()
c:\users\appveyor\appdata\local\pypoetry\cache\virtualenvs\wemake-python-styleguide-py3.6\lib\site-packages\flake8_bandit.py:73: in _load_source
self.source = f.read()
C:\Python36\lib\encodings\cp1252.py:23: in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
E UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 14170: character maps to <undefined>
This is something that I need to work on for sure -- I will potentially have some time in the coming weeks but would welcome a PR if you want to take a stab at it
Reproduction steps:
flake8-bandit
print('Привет, бандиты!')
unicode contentsflake8 your_file.py
It will fail with something like this:
Original issue: wemake-services/wemake-python-styleguide#337
Log: https://ci.appveyor.com/project/wemake-services/wemake-python-styleguide/build/job/185lp386ce91jtsy
The text was updated successfully, but these errors were encountered: