-
Notifications
You must be signed in to change notification settings - Fork 30
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
.pylintrc: Simplify config, only list overrides #1424
base: master
Are you sure you want to change the base?
Conversation
Rather than having the full `.pylintrc`, only list the overrides that we have compared to the default options. This makes it easy to identify what options we have modified, which is also similar to what we do for configuring other tools. At the same time, also remove overrides corresponding to the `gi` module. They were added when this repository depended on the `ostree` module but that's no longer the case.
In GitLab by [Gitlab user @cs-shadow] on Aug 3, 2020, 21:57 added 41 commits
|
In GitLab by [Gitlab user @BenjaminSchubert] on Aug 4, 2020, 07:41 The intent on this MR is widely different compared to another concurrent update to it: !1986 In order to prevent flip-flop between two ways of doing things I think we should discuss this on the ML first. |
In GitLab by [Gitlab user @tristanvb] on Aug 4, 2020, 08:13 I believe the original configuration was by [Gitlab user @tlater] and had the specific intent of ensuring that new versions of the linter did not behave drastically different (I think in the current setup, new Note that |
In GitLab by [Gitlab user @cs-shadow] on Aug 4, 2020, 11:46 Right, that was my understanding as well. Since we pin the pylint versions anyway, I thought that we will notice such issues when trying to update that version to something newer. I can post a quick message on the list to clarify this. |
In GitLab by [Gitlab user @tristanvb] on Aug 4, 2020, 12:04
There is a ton of stuff we don't support from current versions of |
In GitLab by [Gitlab user @cs-shadow] on Aug 4, 2020, 21:48
I can see where you're coming from but I'm not sure if that's entirely true. This is my understanding of the issue (in a lot of words, sorry about that) : Having a When pylint runs, and we haven't set a config flag, it will still use whatever default it has. So, if we were to do this correctly, we should be regenerating our !1986 tries to do this correctly for the next update. I actually proposed this change because I noticed a fair bit of unnecessary diffs for It will be same amount of work in either cases when we are updating pylint. Because, most (if not all) pylint updates don't change default values drastically, but rather add new checks (and fix bugs obviously). If pylint does make a breaking change, we actually may be better off not having the full I was hoping to be a bit more concise in this comment but we'll have to settle with this :) I will also be happy to backout this MR if you (or anyone else) have strong feeling one way or the other. Let me know! |
I think we should merge this. The concern raised that we would need to modify the config in case a new warning is added is incorrect as we already have to make changes whenever we update pylint (see #1494 #1531 #1564). @cs-shadow do you want to rebase or shall I do it? |
See original merge request on GitLab
In GitLab by [Gitlab user @cs-shadow] on Aug 3, 2020, 21:36
Rather than having the full
.pylintrc
, only list the overrides that wehave compared to the default options. This makes it easy to identify
what options we have modified, which is also similar to what we do for
configuring other tools.
At the same time, also remove overrides corresponding to the
gi
module. They were added when this repository depended on the
ostree
module but that's no longer the case.