Re: [GRASS-dev] Moving to Black for Python formatting

2021-04-14 Thread Vaclav Petras
PR 1527 introduces Black to wxGUI code. Open PRs will likely need to be updated before merging. https://github.com/OSGeo/grass/pull/1527 On Fri, Feb 26, 2021 at 11:24 PM Vaclav Petras wrote: > > > On Fri, Feb 26, 2021 at 7:01 AM Luca Delucchi > wrote: > >> On Fri, 26 Feb 2021 at 06:00, Vaclav

Re: [GRASS-dev] Moving to Black for Python formatting

2021-02-26 Thread Vaclav Petras
On Fri, Feb 26, 2021 at 7:01 AM Luca Delucchi wrote: > On Fri, 26 Feb 2021 at 06:00, Vaclav Petras wrote: > > > All this applies to core repo, not the grass-addons repo. Ideas and > volunteers are welcome. > > > > Do you have any suggestions on how to proceed to grass-addons? > Did you just run

Re: [GRASS-dev] Moving to Black for Python formatting

2021-02-26 Thread Luca Delucchi
On Fri, 26 Feb 2021 at 06:00, Vaclav Petras wrote: > > Dear all, > Dear Vaclav, > Black is now applied to all except for GUI code (that will change hopefully > soon). There are few exceptions in place, most notably ctypes. The compliance > is checked using Checks in each PR (aka GitHub Actions

Re: [GRASS-dev] Moving to Black for Python formatting

2021-02-25 Thread Vaclav Petras
Dear all, Black is now applied to all except for GUI code (that will change hopefully soon). There are few exceptions in place, most notably ctypes. The compliance is checked using Checks in each PR (aka GitHub Actions). The version used is Black 20.8b1. It will be updated as new releases come wit

[GRASS-dev] Moving to Black for Python formatting

2021-02-17 Thread Vaclav Petras
Dear all, 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. We need an automatic formatter and enforcement in the CI.