-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
allow-global-unused-variables should respect dummy-variables-rgx #9570
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
Not sure if this change requires news or not, let me know if it does though! I just don't have all the tools installed to regenerate everything but can get that going if needed. |
This would indeed require a news entry, if you don't want to install the tools you can probably copy one from a previous PR and see what the syntax looks like there. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9570 +/- ##
==========================================
- Coverage 95.81% 95.81% -0.01%
==========================================
Files 173 173
Lines 18825 18827 +2
==========================================
+ Hits 18038 18039 +1
- Misses 787 788 +1
|
Done! Just peeked at some other PRs, took a few tries but seems like it is happy now haha, let me know if there's anything else needed before we can get this merged in! π |
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.
π€ According to the primer, this change has no effect on the checked open source code. π€π This comment was generated for commit e80d0a5 |
Any idea how long this will take? Could I instead just add a new flag that allows you instead to opt-in to this behavior then if it might take a while to resolve #8013? |
If you can propose a consistent design it could be fast, otherwise we need to wait for someone else to think this is important and volunteer to think about it. Maybe the current MR is enough and making them mutually exclusive and using only one option at a time is not the way to go. But it should be argumented/documented. Right now I feel we're fixing a particular use case, instead of actually fixing the root issue and are going to throw all this when actually looking into it. |
Where in the docs should I add this? And what do you mean by "argumented"? Should I add another CLI flag that enables this? |
Sorry I was thinking in french, I actually meant argued / reasoned that the better solution is to keep both options and not make them mutually exclusive. We would need to document both of the options if that's the case (here pylint/pylint/checkers/variables.py Line 1243 in 3c8be8e
|
Type of Changes
Description
Right now,
--allow-global-unused-variables=no
doesn't respect--dummy-variables-rgx
, I believe this should fix it π€Refs #8174
Closes #8174