Pre-commit hook through webui editing

I’d like to have client side pre-commit hook to be trigger when editing is done through the webui.
In documentation It’s only server side hook that are mentionned.
Is there any way to install, for example, pre-commit hook on server to be sure that editing through webui and from git remote client give the same result (autoformatting of code, …) ?

Do anyone know if I can put client-side hook in hook directory of one project ?

Thank you.

looking for the same Issue, is there any recommendations yet?