-
-
Notifications
You must be signed in to change notification settings - Fork 8
Add primer tests #78
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
Add primer tests #78
Conversation
Pull Request Test Coverage Report for Build 1999456191
💛 - Coveralls |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@Pierre-Sassoulas Small achievement! It works. There are changes on I'm going to do some code cleanup and add some annotations/comments but I actually think this is almost mergeable in an alpha form for the project. It also gave me some good insight into how to develop this in the future for pylint. |
Yeap, having that in pylint will make the new checkers and every modification SO MUCH BETTER. I'm super hyped in anticipation. |
I have written most of the code here to be somewhat copyable to |
Unless we save the baseline in the repository ? We'd also need to specify the commit for each primer repository. OR maybe it's possible to make a job manual (I did not check the doc of github actions) ? |
Yeah, I was thinking about that as well. But I foresee issues with fixing false-positives and comparing those etc. There is probably a reason why Yeah we can. We might also want to start with a smaller subset of repositories to do false positive checking for. I know that |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
According to the primer, this change has no effect on the checked open source code. 🤖🎉 |
@Pierre-Sassoulas Not sure if you have the bandwidth to check this. I can merge as is, but I left it open to give you the opportunity to review (and potentially spot any errors that could be copied to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be fair I skimmed most of the code but LGTM. It looks great actually.
You can also run the primer locally with minimal set-up. First you will need to make | ||
a duplicate of your ``pydocstringformatter`` directory in a new ``./program_to_test`` | ||
directory. This is required so that the primer can check out multiple versions of the | ||
program and compare the difference. | ||
|
||
The next step is to follow the bash script in the ``Run primer`` step in the ``primer`` | ||
workflow file, found at ``.github/workflows/primer.yaml``. This should allow you to run | ||
all necessary steps locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could create a test with pytest for that ? It seem automatable even if not very convenient because you need to duplicate the git repository.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think it does not offer much: when would the test pass or fail?
At some point I could explore trying to create a script that does the same and handles cloning the repository, but for now I think this is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha right it makes no sense as a test. A script to set it up is more like it.
TODO List:
merge-base
(see mypy)merge-base
branch in write mode