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
The hook strips whitespace on the lines we copy over from before the hook was run. We use rstrip, so I think if I strip only ('\n') instead, that could solve the problem.
This is an issue bc it can fail the hook if the header hasn't changed but the trailing whitespace was removed
📝 Steps to reproduce
Add trailing whitespace to a line in a file, and run the hook (pre-commit run --file file_name --verbose)
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
No response
🐍 Which Python version are you using?
3.10
📦 Installed packages
N/A
The text was updated successfully, but these errors were encountered:
🔍 Before submitting the issue
🐞 Description of the bug
The hook strips whitespace on the lines we copy over from before the hook was run. We use rstrip, so I think if I strip only ('\n') instead, that could solve the problem.
This is an issue bc it can fail the hook if the header hasn't changed but the trailing whitespace was removed
📝 Steps to reproduce
Add trailing whitespace to a line in a file, and run the hook (pre-commit run --file file_name --verbose)
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
No response
🐍 Which Python version are you using?
3.10
📦 Installed packages
The text was updated successfully, but these errors were encountered: