JJMC89 added a comment.
In T281633#7077344 <https://phabricator.wikimedia.org/T281633#7077344>, @Xqt wrote: > Do I understand right: pre-commit changes the code. Is ist done during git commit or when uploading? It is done when `git commit ...` is run (or you can manually run it with `pre-commit run`). If any of the hooks make changes or find issues, then it prevents the commit. You would then: `git diff` to show changes, make any additional changes (e.g. fike flake8 issues), `git add ...`, and `git commit ...` again. TASK DETAIL https://phabricator.wikimedia.org/T281633 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: JJMC89 Cc: Rubin16, valhallasw, Xqt, Aklapper, pywikibot-bugs-list, JJMC89, Shalomori123, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
