Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/parser: Apply standards to generated script #2506

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

wenzeslaus
Copy link
Member

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).

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).
@wenzeslaus wenzeslaus added the enhancement New feature or request label Aug 5, 2022
@wenzeslaus wenzeslaus merged commit fa88ff6 into OSGeo:main Aug 5, 2022
@wenzeslaus wenzeslaus deleted the more-standard-generated-script branch August 5, 2022 02:57
@wenzeslaus wenzeslaus added this to the 8.3.0 milestone Aug 28, 2022
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
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).
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
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).
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant