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

2021-02-04 Thread Vaclav Petras
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]. Th

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

2021-02-05 Thread Markus Metz
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

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

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

2021-02-18 Thread Markus Neteler
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 complian

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

2021-02-18 Thread Vaclav Petras
On Thu, Feb 18, 2021 at 4:11 PM Markus Neteler wrote: > On Fri, Feb 5, 2021 at 5:14 AM Vaclav Petras wrote: > > > 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