Closed sarina closed 2 years ago
@UsamaSadiq: Can you or your team take care of the upgrade?
Hi @robrap @sarina Sure, Arbi-bom will have a look at it tomorrow. We usually take care of not updating the pylintrc manually but seems like it was missed in review along with other major refactoring.
Thanks! There's a few other similar ones I've filed, and I am pretty sure I will encounter more as I've only processed about 50 of my 184 open PRs.
https://github.com/openedx/super-csv/issues/118 https://github.com/openedx/xblock-adventure/issues/49 https://github.com/openedx/taxonomy-connector/issues/110 https://github.com/openedx/staff_graded-xblock/issues/125
I solved this for taxonomy-connector by matching pylintrc_tweaks
to edx-platform
(with the addition of no-self-use
, which is new, and I'm working on adding to edx-platform's pylintrc_tweaks file).
@nedbat: Additional thoughts about tweaks:
Context: Sarina was talking about copying around tweaks, and that made me think that maybe these tweaks shouldn't be tweaks, but I did not look into the details.
I think we are suffering a lot of R0201 (no-self-use) these days. It might make sense to move that disable into the central file. Pylint seems fine with mentioning the same message id in the disable list twice, so it shouldn't hurt the early tweakers to disable the message centrally.
For the other questions: there's no how-to for moving a setting to the central file, and there's no agreed process for deciding what goes into the central file. Commenting tweaks sounds like a great idea to me.
Hmm! https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers
Moved no-self-use check to optional extension. You now need to explicitly enable this check using load-plugins=pylint.extensions.no_self_use.
As per the discussions, I'll create a separate PR in edx-lint
to move the no-self-use
check to central pylintrc
disabled section.
Currently I am unable to update pylintrc to the generated version defined in edx_lint because it was previously manually edited. by @Jawayria @robrap & @UsamaSadiq
Work should be done to upgrade pylintrc properly and resolve the errors that happen because of the upgrade.
https://github.com/openedx/edx-lint