<div dir="ltr"><br><br>On Fri, Feb 5, 2021 at 5:14 AM Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com">wenzeslaus@gmail.com</a>> wrote:<br>><br>> Dear all,<br>><br>> I prepared a change to g.parser and related code which changes the option definitions in scripts (aka script header) from:<br>><br>> #%option<br>> #% key<br>> #%end<br>><br>> to:<br>><br>> # %option<br>> # % key<br>> # %end<br>><br>> The reason is PEP8 compliance where "each line of a block comment starts with a # and a single space" [2].<br>><br>> 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.<br>><br>> 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.)<br>><br>> 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.<br><div><br></div><div>These warnings for #% are a real annoyance, distracting from meaningful warnings. The suggested changes will make code quality checking and code improvement much easier. <br></div><div><br></div><div>+1</div><div><br></div><div>Markus M<br></div><br></div>