<div dir="ltr"><div>Dear all,</div><div><br></div><div>At this moment, we don't use an automatic formatter for Python code and we have only limited enforcement of basic formatting rules. This is changing as we are moving towards PEP8 formatting compliance and automatic Flake8 checks.<br></div><div><br></div><div>We need an automatic formatter and enforcement in the CI. There seems to be a clear candidate for that and that is Black (The uncompromising code formatter) which was already suggested in 2019:</div><div><br></div><div><a href="https://lists.osgeo.org/pipermail/grass-dev/2019-May/092654.html">https://lists.osgeo.org/pipermail/grass-dev/2019-May/092654.html</a></div><div><br></div><div>See details about how that applies to GRASS here:<br></div><div><br></div><div><a href="https://github.com/OSGeo/grass/issues/543">https://github.com/OSGeo/grass/issues/543</a></div><div><br></div><div>Here is a first PR (ready to be merged) which makes changes to content of scripts and adds a automatic check:<br></div><div><br></div><div><a href="https://github.com/OSGeo/grass/pull/1347">https://github.com/OSGeo/grass/pull/1347</a></div><div><br></div><div>Best,<br></div><div>Vaclav<br></div></div>