Re: [GRASS-dev] Should we use GitHub Discussions?

2021-02-08 Thread Vaclav Petras
On Tue, Feb 2, 2021 at 5:49 PM Luca Delucchi  wrote:

> On Thu, 21 Jan 2021 at 08:49, massimo di stefano
>  wrote:
> >
> > ‘’’
> >  I think emails (and mailing lists) are awesome, but mailing lists are
> increasingly seen as archaic and not accessible
> > ‘’’
> >
> > What about migrating our mailing list to mailman3?
> > The postorius interface looks modern and when integrated with hyper
> kitty, allows an easy access to the list archives (including search and
> post statistics).
> >
>
> I fully agree with this proposal, but this should be done at OSGeo
> Level, Massimo do you want to investigate this solution with SAC?
>

Or I can click on that one checkbox in GitHub settings. :-)
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] Use # %, not #% in Python scripts

2021-02-08 Thread Vaclav Petras
On Fri, Feb 5, 2021 at 2:35 PM Markus Metz 
wrote:

>
>
> On Fri, Feb 5, 2021 at 5:14 AM Vaclav Petras  wrote:
> >
> > Dear all,
> >
> > I prepared a change to g.parser and related code which changes the
> option definitions in scripts (aka script header) from:
> >
> > #%option
> > #% key
> > #%end
> >
> > to:
> >
> > # %option
> > # % key
> > # %end
> >
> > The reason is PEP8 compliance where "each line of a block comment starts
> with a # and a single space" [2].
> >
> > The PR is removing all use of #% from the code, but it is still allowed,
> so addons and existing user code should continue to work. However, I don't
> see a need to depreciate support of #% at this point.
> >
> > This change moves us a little closer to PEP8 or Flake8 compliance. We
> can now enable the check in CI once the normal comments are fixed. (The
> file header comment is ignored, so no need to change that, but we can
> consider that anyway.)
> >
> > The vision is that users and contributors can write scripts which just
> work with more or less default Flake8 settings. This is a big step towards
> that because it removes tens of warnings for a standard module.
>
> These warnings for #% are a real annoyance, distracting from meaningful
> warnings. The suggested changes will make code quality checking and code
> improvement much easier.
>

> +1
>

Thanks for the feedback. The change is now merged.
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev