Pre Commit
mithun2003 opened this issue · comments
I create a pre commit file which will check this ruff, format of the staged code if format require it format the file and stop that commit and also check for prints if a print occur in the staged code it will throw an error and stop the commit.
this is the code for that pre commit
but for run this the system have pre-commit and flake8-print installed.
pip install pre-commit flake8-print