I need to see how it integrate within the Pycharm workflow. Because I fear to not see exactly what goes wrong in a hook in Pycharm, rather than the make command in the terminal. I see that Pre-commit commands ran manually are more complex than make commands (options needed). And it worries me.
pre-commit hooks can run into the terminal in Pycharm. We can keep the Makefile, I still find some parts of it convenient.
I have just tested the pre-commit with a mypy error when committing in Pycharm. All logs are in the Git Console window! This is great cause I have all the info to fix errors.
For the MakeFile, as you say we should not have two environments and replace poetry commands by pre-commit ones.
To ensure using the same versions of utilities in pre-commit and make commands.
Before:
# check code errorspylint: poetry run pylint duniterpy tests examples
After:
# check code errorspylint: pre-commit run pylint duniterpy tests examples
Moulchanged title from Get rid of the makefile in favor of pre-commit to Get rid of the tools from Poetry dev dependencies in favor of pre-commit
changed title from Get rid of the makefile in favor of pre-commit to Get rid of the tools from Poetry dev dependencies in favor of pre-commit
Moulchanged title from Get rid of the tools from Poetry dev dependencies in favor of pre-commit to Get rid of the Makefile and tools installed from Poetry dev dependencies in favor of pre-commit
changed title from Get rid of the tools from Poetry dev dependencies in favor of pre-commit to Get rid of the Makefile and tools installed from Poetry dev dependencies in favor of pre-commit
Moulmarked the checklist item Remove make installation from image generations as completed
marked the checklist item Remove make installation from image generations as completed
Moulchanged title from Get rid of the Makefile and tools installed from Poetry dev dependencies in favor of pre-commit to Stop using the Makefile in the CI and tools installed from Poetry dev dependencies in favor of pre-commit
changed title from Get rid of the Makefile and tools installed from Poetry dev dependencies in favor of pre-commit to Stop using the Makefile in the CI and tools installed from Poetry dev dependencies in favor of pre-commit