Closed fhightower closed 3 years ago
Hey, I would like to take this up. I am a complete newbie on making contributions on github. And so I would need some help to accomplish the challenge. I hope you don't mind that.
Can you please tell that in which files I have to make changes. Is it the modeled function ?
Wonderful 🎉 ! Thanks for wanting to be involved and I don't mind helping at all @ShrutiKatpara!
Here is the process we'll follow:
7-add-line-count-func
If you have any follow-up questions, don't hesitate to ask! It takes practice to understand how to contribute to software, so there is no shame in asking for help.
Thanks @fhightower for all the guidance.
I will start working on the issue.
Hey @fhightower. Just to be clear. I saw that the python_function_line_count is already implemented in the package.
Is my task to test the function by generating test files and correct the function wherever it fails?
Thanks for asking @ShrutiKatpara and I have to apologize; my original comment was not very clear and was misleading.
I think the best approach is to rename the python_function_line_count to make it more general. Currently, the name of the function makes it sound like it only counts lines for functions, but this is not the case; it can count lines for any given string of code. So, your task is to update the name of the function python_function_line_count
to python_line_count
(or something like that) and then update:
python_function_line_count
throughout this file and the testsDoes that make sense? Thanks again for clarifying this.
Yeah sure. Thanks @fhightower . I think I misunderstood the task. Thanks for clarifying me.
I would also like to work on this. Is it possible to assign it to two people?
Thanks for reaching out @riyalalwani19 👋 !
Yes, we can assign two people to this issue, but that is up to @ShrutiKatpara . @ShrutiKatpara: would you like some help from @riyalalwani19 on this issue or do you prefer to work on it alone? Either way is fine.
In the mean time, @riyalalwani19, there are some other issues in the Democritus Project for which we are looking for help:
Please let me know if any one of these (or any other issue) looks interesting.
I have no issues to collaborate with @riyalalwani19 . I would be happy instead. Thanks.
Sweet, I've added @riyalalwani19 as an assignee for this issue (thanks @riyalalwani19 for being willing to help 🎉 ).
Also, I've merged a PR that updated this repo so you may want to pull the changes if you have this repo cloned locally.
HELP WANTED 👋 : If you'd like to take this challenge on, please let me know! Even if you're new to Python and/or Github, this is a great place to start and I'd be happy to help walk you through this challenge as much as you need - don't hesitate to ask.
This particular issue will give you some exposure to writing a simple function and writing tests for that function.
What?
I would like a function to find the number of lines in Python code.
I envision the signature of such a function looking like:
Why?
Counting lines of code is a common use-case.
How?
This function can be modeled on the python_function_line_count function.