Hi, colleague of my mine was unable to run pycln as a pre-commit hook on his Windows machine.
I have tried it myself and it fails with the same error message:
UnicodeEncodeError: 'charmap' codec can't encode character '\u2728' in position 12: character maps to <undefined>
Problematic line:
typer.echo(str(reporter), nl=False)
I have tried to fix it and encoding it to UTF-8 seems to help:
typer.echo(str(reporter).encode("utf-8"), nl=False)
I will prepare PR for this.
Environment:
- Python Version: Python 3.9
- Pycln Version: v0.0.2
- OS Type: Windows 10
Hi, colleague of my mine was unable to run pycln as a pre-commit hook on his Windows machine.
I have tried it myself and it fails with the same error message:
Problematic line:
I have tried to fix it and encoding it to UTF-8 seems to help:
I will prepare PR for this.
Environment: