-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: inconsistent namespace usage in tests.indexes #38076
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
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.
can u update the precommit rule
short answer: not really. this only gets a handful of things in a handful of files. i pinged @MarcoGorelli on the script; there are things I think it should catch that it isn't. i dont want to tinker with the script until im confident it is working correctly. |
The original script only looks for class names - for methods, I think we could change
Where did you ping me? If it was in another issue then I may have missed it, sorry |
Huh I'm not finding it, my bad. I was asking why CLASS_NAMES had been removed, since ive noticed that both MultiIndex and pd.MultiIndex are present in some of the indexes test files. |
It might be that they appear if they're present with starting brackets, currently we just check for cases of e.g. Maybe it's OK to remove the paren and extend the check beyond classes now |
Makes sense. For now I'll be happy with just fixing the handful in this PR so I don't keep stumbling over them in other branches. |
sure - I've opened #38093 as a placeholder |
great yeah we ought to become strict on these |
Finding these annoying while doing other work in this directory.