8000 Fix: Change block commenting to comply with PEP 8 by WhitespaceQ · Pull Request #3563 · thonny/thonny · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix: Change block commenting to comply with PEP 8 #3563

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

WhitespaceQ
Copy link
@WhitespaceQ WhitespaceQ commented Mar 3, 2025

Trying to fix #3404: Ensure commenting behavior adheres to PEP 8 guidelines

This pull request addresses the previously non-compliant commenting behavior in our codebase. The commenting behavior have been updated to meet PEP 8 standards. Both space and tab indentation (single and multi-line selection) have been tested and work correctly.

Please review the changes and let me know if they do not conform to any internal code guidelines. I am happy to make further adjustments to comply with the standards.

Thank you!

@WhitespaceQ WhitespaceQ force-pushed the fix_commenting_behavior branch 2 times, most recently from 871bbb5 to 4e3e1cb Compare March 3, 2025 08:47
@WhitespaceQ WhitespaceQ force-pushed the fix_commenting_behavior branch from 4e3e1cb to 2a4f564 Compare March 4, 2025 01:10
Refactored the _selection_is_line_commented, _comment_selection,
and _uncomment_selection functions to use str.format() for string
formatting instead of string concatenation to improve readability.
@WhitespaceQ WhitespaceQ changed the title Fix: Block commenting behavior compliant with PEP 8 Fix: Change block commenting to comply with PEP 8 May 2, 2025
@aivarannamaa
Copy link
Member

Thanks for the PR and sorry for the late reply!

Unfortunately it is hard to see what is the real change, because you have changed string formatting in several places. Or does it matter for getting the desired change?

@WhitespaceQ
Copy link
Author

Functional commit is on d007c5a the other commits are for style/readability only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Follow PEP 8 guideline for block comment indentation
2 participants
0