Le 12/12/2024 à 16:38, Even Rouault via QGIS-Developer a écrit :
Le 12/12/2024 à 16:33, Julien Cabieces via QGIS-Developer a écrit :Not a great fan of this approach, It looks like complicated to me, I would prefer the old behavior. Those automatic PR force also contributor to rebase before pushing new modification to their branch. And if they have modified area of code which have been reformatted, they get conflicts. automatic pre-commit commits brings more difficulties than what it solves IMHO.I also tend to agree on that. On other projects I'm involved too (GDAL, PROJ, shapelib, libtiff) where we have put in place pre-commit, we just have a CI check that checks the formatting is OK. This requires a bit of education to first time contributors, but pointing to the documentation with clear instructions on how to setup pre-commit should be good enough. https://github.com/qgis/QGIS/edit/master/.github/PULL_REQUEST_TEMPLATE.md could also have some words about itLike in https://github.com/OSGeo/gdal/edit/master/.github/PULL_REQUEST_TEMPLATE.md , " - [ ] Make sure code is correctly formatted (cf [pre-commit configuration](https://gdal.org/development/dev_practices.html#commit-hooks))"
On second thoughts, I agree with Julien and Even. Jean
OpenPGP_0x12722DC64D3F429E.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer