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

temporal: Fixed E265/E266 in t.rast.what/ #4550

Merged
merged 2 commits into from
Oct 21, 2024
Merged

Conversation

arohanajit
Copy link
Contributor

Removed commented out concerning E265, E266

@github-actions github-actions bot added temporal Related to temporal data processing Python Related code is in Python module labels Oct 18, 2024
.flake8 Show resolved Hide resolved
Copy link
Member

@echoix echoix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this removes the unused parser flags as suggested in the comment after #4548 was closed, what should be done with the parser code still contained within? There is at least 3 commented lines that were there to load the flags. I didn't follow the three new variables yet to see usages.

I see that one source of problems is that the i flag (commented out) is now used for stdin input. Is that the reason why it was commented out?

Then if the commented out code spread out isn't valid, how helpful is it?

echoix added a commit to echoix/grass that referenced this pull request Oct 20, 2024
Ruff rule: https://docs.astral.sh/ruff/rules/multiple-leading-hashes-for-block-comment/

For gui/wxpython/psmap/frame.py, the commented code was present since it was moved from addons to the main repo 13 years ago. At the time, both pair of lines had the same indentation, before PEP8 only formatted the second lines.

File temporal/t.rast.what/t.rast.what.py is ignored for E265 and E266, as it is being addressed in OSGeo#4550
echoix added a commit that referenced this pull request Oct 20, 2024
…le issues (#4560)

* style: Fix missing-whitespace (E231)

* style: Fix mixed-spaces-and-tabs (E101)

Ruff rule: https://docs.astral.sh/ruff/rules/mixed-spaces-and-tabs/

* style: Enable checking for E ruff rules from pycodestyle

* style: Fix multiple-leading-hashes-for-block-comment (E266)

Ruff rule: https://docs.astral.sh/ruff/rules/multiple-leading-hashes-for-block-comment/

For gui/wxpython/psmap/frame.py, the commented code was present since it was moved from addons to the main repo 13 years ago. At the time, both pair of lines had the same indentation, before PEP8 only formatted the second lines.

File temporal/t.rast.what/t.rast.what.py is ignored for E265 and E266, as it is being addressed in #4550
@petrasovaa petrasovaa added this to the 8.5.0 milestone Oct 21, 2024
@petrasovaa petrasovaa merged commit 15134e1 into OSGeo:main Oct 21, 2024
26 checks passed
@arohanajit arohanajit deleted the 266-t.rast branch October 21, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module Python Related code is in Python temporal Related to temporal data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants