-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI: add validate_unwanted_patterns to known_third_parties #35021
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
We had this and removed it in #28272 (see some discussions there). I think I struggled the most with it, dunno if it hit other contributors. |
@TomAugspurger thanks for pointing me towards that - OK, am happy to not add Should |
Don't know. It's not in the pandas namespace, so probably not? Don't have a strong preference though. |
Sure - have removed seed-isort-config and added |
I think this is fine |
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.
lgtm
Thanks! |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
By using
seed-isort-config
, theknown_third_party
setting is automatically populated and alphabetically sorted. This is a cleaner solution which doesn't require manually adding third parties tosetup.cfg
.Furthermore, it catches an existing inconsistency: currently,
validate_docstrings
is set as a known third party, whilevalidate_unwanted_patterns
isn't. Neither should be, IMO.