[GRASS-git] [OSGeo/grass] fa88ff: lib/parser: Apply standards to generated scripts (...
Vaclav Petras
noreply at github.com
Thu Aug 4 19:57:34 PDT 2022
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: fa88ff639580209a191443ae4161f8e4cdaf1b24
https://github.com/OSGeo/grass/commit/fa88ff639580209a191443ae4161f8e4cdaf1b24
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2022-08-04 (Thu, 04 Aug 2022)
Changed paths:
M lib/gis/parser_script.c
Log Message:
-----------
lib/parser: Apply standards to generated scripts (#2506)
The --script now generates code which complies with Black, Flake8 (except long lines), and Pylint (except line-too-long and unused-variable).
The practice of calling main in sys.exit() and return 0 was removed (usually not needed in this context). Parser call is now in main, so the variables are not global anymore (and thus also follow the right naming practice).
More information about the grass-commit
mailing list