Open dipinknair opened 9 months ago
I don't believe this is the hook's issue. The main problem is that the file has no extension. All files should have extensions (except for binaries on Linux IMO).
My only suggestion is that we also enable a way to pass in a file location explicitly, and we assume that whatever file passed is in ASCII.
📝 Description of the feature
Bash scripts are failing in pre-commit license because of it does not have extension and hence error is coming as unrecognized file.
Skipped unrecognised file D:\PyAnsys\Repos\pymechanical-env\src\ansys\mechanical\env\mechanical-env
eg: mechanical-env https://github.com/ansys/pymechanical-env/blob/main/src/ansys/mechanical/env/mechanical-env
💡 Steps for implementing the feature
It can be fixed or we can exclude files using exclude option and manually update license
🔗 Useful links and references
No response