ansys / pre-commit-hooks

Ansys-developed pre-commit hooks for automating style and formatting
https://pre-commit-hooks.docs.ansys.com/
MIT License
6 stars 1 forks source link

add-license-headers is changing special characters #143

Open klmcadams opened 8 months ago

klmcadams commented 8 months ago

The hook is incorrectly writing special characters with fileinput when using python 3.9

https://github.com/ansys/pyadditive/blob/main/src/ansys/additive/core/microstructure.py

image

RobPasMue commented 8 months ago

Make sure to use the same encoding. Seems to me like that's the main issue. The "micro" symbol is not UTF-8, but UTF-16 probably... you'll need to double check