Open wenzeslaus opened 4 years ago
Hi there, I'd like to give it a try. I'm a bit new with coding but I'd really like to contribute.
Hi and welcome! That sounds great. If you have some updates or questions, you can post them here. Perhaps you are already there, but you can also sign up for the grass-dev mailing list to discuss some more general questions. Even fixing one or two of those would be quite helpful!
Thanks for the opportunity. I'm on it.
Hi again, I think I've fixed the issues.
I've also removed the "F841, # local variable.." line form temporal/.flake8
and modified temporal/t.vect.algebra/t.vect.algebra.html
since it had a paragraph referring to raster datasets.
I've forked GRASS repository, and don't know how to proceed.
@nobeeakon If you have the fork, you need to clone it, create a local branch, push this branch to your fork, and then GitHub will show you here and there buttons to open a pull request (PR). Here is the contributing guide to follow which discusses this in detail:
https://github.com/OSGeo/grass/blob/master/CONTRIBUTING.md
Most of the general instructions you can find online will apply here as well. If something is not right, we can address that even after you open the PR.
The documentation change does not seem related, so it would be better to have it in separate branch and create a different PR for that.
Let me know if you hit any roadblocks.
@wenzeslaus done. I finally created the PR for this issue. Long time but finally done...
and
Describe the bug There are unused variables in three temporal (
t.
) modules and some tests. It is not immediately clear if these can be just removed or they are actually supposed to be used and the code need to be fixed. Note that one is module option.To Reproduce
Go to the
temporal
directory in GRASS GIS source code:(Install Flake8 and) Run:
Expected behavior No Flake8 error Local variable name is assigned to but never used (F841). Variables should be either used or not present.
Flake8 Errors
Additional context The code for each module, documentation for the library functions used, and module documentation should provide a clear idea about which variables are supposed to be used and which can be safely removed.
Additionally, the fix can also remove the line
F841, # local variable...
from the Flake8 configuration file for the temporal directory (temporal/.flake8
).