-
Notifications
You must be signed in to change notification settings - Fork 892
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
Implement pandas-vet
#1235
Implement pandas-vet
#1235
Conversation
I'll try to implement |
7f0ba1a
to
e85866e
Compare
@edgarrmondragon Just fyi I had opened following ticket with pandas vet bit ago, that don't know if worth considering (again would double check if true, but wanted to bring up just in case) deppen8/pandas-vet#113 |
@edgarrmondragon Additionally do remember then having some what unresolved issue with deppen8/pandas-vet#74 where some checks could give false negatives, don't know if concern or if still run into here but wanted to bring up just in case |
@ksdaftari I have not implemented The workaround
could lead to false negatives instead. Wdyt? |
Yeah, makes sense to recommend |
@edgarrmondragon - Just double-confirming, all set for review here? |
5da1a6e
to
ca2bc52
Compare
Yup, all set 🙂 |
Great, will review and hopefully merge today :) |
Any reason we renamed these codes from the upstream |
I’ve been advocating the use of more specific prefixes for plugins, to avoid collisions in the present and future. For example, flake8-tidy-imports uses the “I” prefix, which is maybe fine if you have to explicitly instead the plugin to activate it, but causes collisions in the Ruff model. So I’d generally been biasing towards three-letter prefixes for all plugins. It’s a questionable choice and maybe one that merits case-by-case consideration, would love your opinion. In this case, PD might be confusing if we implemented another Pandas-related plugin. We could also consider adding redirects from PD to PDV like we do for some other codes (e.g., U to UP). |
Hmm. It seems to me that the main benefit of the This has sort of been in the back of my mind—something more like ESLint’s system where e.g. |
Yeah that's a very reasonable argument. Perhaps the right approach for now is to only deviate if it will cause a conflict with an existing plugin or knowingly cause a conflict with another known plugin that we might reasonably implement. I can revert to PD for this specific plugin. And yes -- I do want to redo the error code system (ideally in a way that's compatible with the existing system and thus with Flake8), and I think ESLint is probably the right model to follow (though I also want to retain unique IDs for each code like Pylint, which is necessary for compatibility anyway). I wrote a bit about it here: #967. This will probably come with some more flexibility around |
Closes #1141