Closed EdSaleh closed 3 months ago
This is just a wrapper around pylint
for VS Code, please file this feature request on https://github.com/pylint-dev/pylint/issues
(pylint maintainer here), you should create your custom pylint plugin for that, enforcing a kind of 'end' keyword to make python look like pascal or ada is going to not be pythonic enough / too controversial for pylint core.
Create a new rule to require that each block must end with # or #. This would work as a curly braces blocks found in C style languages. Also, this could also be used to reformat python code by code editor to fix any indentation issues.
Users can also use a different word symbol or use a new line for this purpose. (#., #/, newline, etc). The user has the option to select the keyword they would like to have for the project.
Example: