I have project with python and reactjs.
Project_folder
--Django_project
--Reactjs_project
--.git
I want to use pre-commit hooks for git using flake8 and black for my python project.
In this case how to tell git to check pre-commit hook only for python project.