-
Couldn't load subscription status.
- Fork 19
Fix environment adding pyyaml to install requirements #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
yaml isn't a requirement unless you want to use yaml config (python or json config formats require no additional modules). |
|
First of all, sorry for the late reply, it has been a very busy month. I see your point, but in my opinion the precommit hook should support the whole cmake format utility. That means support all formats witch the original tool supports, independent if you use python, json or yaml at your config. Thats also allow all people to use the extension only adding the hook without change theoir current configuration, if you use yaml for the configuration in your project, you can still using it, without need doin modifications. I think that the pyyaml module is not a big overload, from my point of view is better having the full real utility instead of do not install a small module. Finally, thank you for creating and maintaining this hook! I am currently using it in several projects and it helps me to keep these files in order and in a common format! |
|
For reference, I am currently using the repo of @Kr4is to be able to configure via yaml file |
|
@m-kuhn Thats great! Also i need to say that you can use the following in order to use the @cheshirekow repo with yaml configuration files: greetings! |
|
Thanks for pointing that out. Would be nice to apply your proposed fix or have the precommit hook print this hint instead of the import error. |
|
Hi, @Kr4is thank you for this PR, I agree with @m-kuhn that it would be nice to see it merged or have the pre-commit hook print this hint instead of the import error. Just a marginal question, do I have to provide a particular option to the |
|
Hello @Andreagit97 , As can be seen in the documentation of cmakelang we have two options. I hope my answer has been helpful! Best regards and thanks for the comment! |
Yes, thank you very much!
|
thanks @Kr4is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
Could this be merged finally? Thx! |
|
Hello, why can this not be merged? What's the hold out? |
|
This is still an issue! |
This hook was failing due to a ModuleNotFoundError: No module named 'yaml'. I have updated the setup config to add pyyaml>=5.1, fixing that error.
Before:
After: