-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Deprecate find_pylintrc
#6057
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
Deprecate find_pylintrc
#6057
Conversation
Pull Request Test Coverage Report for Build 2065693093
💛 - Coveralls |
The coverage decreased because there were tests to check that we could browse a python package to find the pylintrc in parent directory too. I would be in favor of searching at the root of the project in pyproject.toml, setup.cfg, pylintrc and .pylintrc and only that. It's already a lot more than what flake8 is doing for example. Guess which project has less issues to handle ? 😄 I think it's the way pylint is used most of the time (or should be used). And we added the possibility to do This is related to #3769 where they were discussion about configuration. |
The issue is that these tests don't test that.. I removed these tests because the only asserts are on Edit: Let me rephrase, these tests test that behaviour indirectly. I would like to refactor the function and test directly rather than through |
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.
I think we should deprecate find_pylintrc
first, before removing in 3.0, it's an API. We can add the new tests in this MR too.
pylintrc
filefind_pylintrc
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, thank you.
Type of Changes
Description
I wonder if this is considered external. It is in the
__all__
but there is no reason for anybody to use this, I think? We don't even use it as the logic for finding the configuration file has moved tofind_default_config_files
.