Replies: 3 comments 2 replies
-
This is a great suggestion! We are much in need of simple ways to check on our coding style and consistency. @zainsohail04 can you look into this? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your suggestion, David. I have recently been using some of the stuff locally but I didn't use pre-commit hooks before so definitely going to look into it. |
Beta Was this translation helpful? Give feedback.
-
Since this has already been implemented, closing this discussion. |
Beta Was this translation helpful? Give feedback.
-
I strongly suggest the use of pre-commit hooks (https://pre-commit.com/). It can make a real difference in terms of readibility and correctness in the code.
The bare minimum hooks I suggest are the following:
You can find a working example in one of my public repos at https://git.elnota.space/daviddoji/Advent_of_code/src/branch/master/.pre-commit-config.yaml
Beta Was this translation helpful? Give feedback.
All reactions