-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Use main instead of master as main checker name #6569
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
Conversation
Pull Request Test Coverage Report for Build 2299752502
💛 - Coveralls |
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.
I'd feel safer if we handled both i.e. we keep the old MASTER in the tests, and add one test using MAIN.
We have tests for That's why I am not too worried about changing this across our own code. We support both since our migration to |
Co-authored-by: Daniël van Noord <[email protected]>
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.
The argparse migration permits to do a lot of thing easily, that was the main component of 2.14 by far imo. Great work @DanielNoord !
I'm just worried about any potential regressions... 😅 Until now only Let's hope the |
I'm a little worried about bad-option-value being raised if a check became an extension (no-self-use). What do you think about handling this use case ? We're going to get this a lot because I can see how a lot of pylintrc would disable it right now. |
I think that's a feature not a bug. It immediately tells people to either add the extension to their config if they want to keep using it or remove it from their disabled list of they no longer want to.
|
Say you already explicitly disabled no-self-use, what's the value brought by having to remove it because it became optional in pylint ? It just feel like double the work (and just imagine if we want to change our mind about including a check, they'd need to re-disable it). I would be very conservative in forcing users to clean up their config file manually. How about a warning for explicit enable telling the user what plugin need to be loaded now and nothing for explicit disable ? |
In that first case there is no specific value other than a shorter config file. The only change users who don't want to receive these messages ever again is add Adding anything else to this imo just unnecessarily complicates things. It's a 1 or 2 minute change after |
Wouldn't a basic version of the auto-migration in #5462 (doable by just loading a conf and re-generating it immediately) fix this issue by making it automated though ? |
You would still need a manually maintained mapping of moved messages and extensions as well finding a way to determine whether a It might not be as simple as removing any |
doc/whatsnew/<current release.rst>
.and preferred name in
script/.contributors_aliases.json
Type of Changes
Description
Closes #5467.
Sorry for the size of the PR, but I just went through all cases of the term
master
.I think it would be good to do this in the
beta
as well as this could unexpectedly break stuff and is then very easy to revert.