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 |
Pierre-Sassoulas
left a comment
There was a problem hiding this comment.
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
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.