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

Migrate valid bugs and notable feature requests from the original darglint repository. #26

Open
akaihola opened this issue Apr 27, 2023 · 13 comments
Assignees
Labels
CI Packaging, testing, continuous integration

Comments

@akaihola
Copy link
Owner

akaihola commented Apr 27, 2023

Originally posted by @real-yfprojects in #10 (comment)

@akaihola akaihola changed the title > I'm not sure we want to bulk migrate each and every issue. Let's discuss. Migrate valid bugs and notable feature requests from the original darglint repository. Apr 27, 2023
@akaihola akaihola added the CI Packaging, testing, continuous integration label Apr 27, 2023
@real-yfprojects
Copy link
Collaborator

real-yfprojects commented Apr 30, 2023

Selected

Unchecked in this section - Not yet ported to this repo
Checked in this section - ported to this repo

Ruled out

Checked - no further action required
Unchecked - pls review decision

@akaihola
Copy link
Owner Author

Wow @real-yfprojects, this is a great effort! Let me know how I can best help.

@real-yfprojects
Copy link
Collaborator

real-yfprojects commented Apr 30, 2023

Wow @real-yfprojects, this is a great effort! Let me know how I can best help.

Pls, review my decisions (selected issues + those ruled out issues that are unchecked)

Edit: And pls have a look at the remaining PR

@akaihola
Copy link
Owner Author

I took a look at terrencepreilly/darglint#206. I guess darglint doesn't behave in an expected way if the docstring has an empty definition for the type of a function argument? The PR seems to skip such cases and leave the type empty, whereas you seem to suggest making an empty type an error. I would agree with you: either the type should be omitted, or it should match the annotation. Did I understand this correctly?

One thing that comes to mind is whether some of the docstring formats cause arguments to have an empty type if you only annotate them but don't specify the type in the docstring?

Anyway, this seems like a behavior which should be addressed, but perhaps in a different way than the original PR?

@akaihola
Copy link
Owner Author

So @real-yfprojects is your plan to basically mass migrate all issues and PRs, leaving out just ones that obviously don't make sense?

I guess the alternative approach would be to really cherry pick the few most relevant issues/PRs and treat the original darglint repository as an archive from which to migrate more of them as time permits.

Which approach to pick I think largely depends on how much you're willing to put time and effort into it. It's superb if we can indeed migrate all still relevant issues&PRs and even improve them while doing it.

I can (and love to) contribute sporadically as may day job, family and stress levels permit, but I won't be able to put time into this daily or even weekly in a consistent way.

@real-yfprojects
Copy link
Collaborator

either the type should be omitted, or it should match the annotation. Did I understand this correctly?

When there is a type hint in the signature the type should show up in the docstring. However darglint2 could use a new error code for that so that one can ignore the empty type case.

this seems like a behavior which should be addressed, but perhaps in a different way than the original PR?

Exactly.

@real-yfprojects
Copy link
Collaborator

our plan to basically mass migrate all issues and PRs, leaving out just ones that obviously don't make sense?

I am currently going through them, trying to reproduce them and selecting the issues I would like to see fixed. Afterwards we can manually migrate one issue at a time whenever we want to solve one. Alternatively we could use a script to mass migrate them.

@akaihola
Copy link
Owner Author

going through them, trying to reproduce them and selecting the issues I would like to see fixed

Great! In that case it would be easiest for me to contribute to the effort by reviewing the migrated issues one by one as you migrate them.

@real-yfprojects
Copy link
Collaborator

I can (and love to) contribute sporadically as may day job, family and stress levels permit, but I won't be able to put time into this daily or even weekly in a consistent way.

That's not a problem. I will work on the given issues (although only as much as my free time permits).

@real-yfprojects
Copy link
Collaborator

When there is a type hint in the signature the type should show up in the docstring. However darglint2 could use a new error code for that so that one can ignore the empty type case.

It seems like there is already DAR104. However I wasn't able to produce the error.

@real-yfprojects
Copy link
Collaborator

Currently I am not able to edit the project board and roadmap https://github.com/users/akaihola/projects/3/. However I find it useful to coordinate development. Do you mind giving me access if github allows it?

@akaihola
Copy link
Owner Author

akaihola commented May 1, 2023

Of course! You should be able to manage the project now.

@real-yfprojects
Copy link
Collaborator

You should be able to manage the project now.

Thanks! I have access but I am overwhelmed with options: There even is a roadmap feature. Since I didn't use projects before, I'll play around with a private copy first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Packaging, testing, continuous integration
Projects
Status: No status
Development

No branches or pull requests

2 participants