summaryrefslogtreecommitdiff
path: root/doc/whatsnew/fragments/_template.rst
diff options
context:
space:
mode:
authorDrummond Ogilvie <me@daogilvie.com>2022-09-07 11:39:03 +0100
committerGitHub <noreply@github.com>2022-09-07 12:39:03 +0200
commit1a7cdab8adb3f3b09b990b8f5df3e3f254882935 (patch)
tree9f5a3c0f2ac4ce4a9e6da2385c3738b3a0dd1e29 /doc/whatsnew/fragments/_template.rst
parent8b46e222b4d8f3abc01c9bde58e4ecc5af617fef (diff)
downloadpylint-git-1a7cdab8adb3f3b09b990b8f5df3e3f254882935.tar.gz
Add more cases that emit bad-plugin-value (#7284)
* Add x-failing test for issue 7264 case 3 This is the case where a plugin can be imported only after the init-hook is run, and the init hook is specified in a pylintrc file We would expect the module to not load in any case, and cause the emission of a bad-plugin-value message. * _dynamic_plugins is a dict not a set This is in preparation for caching the loaded modules, and for storing other information that will help in identifying times loading is dependent on init-hook magic. * Use cached module objects for load_configuration This fixes case 3 in #7264, and is technically a breaking change, in that it now emits a message for what would have previously been a silent failure. * Interim review comment fixes 1. Remove the xfail that snuck back in after the rebases. 2. Now that fake_home yields a str, update the type hint. * Add test for bad plugin with duplicated load This is case 6 in issue #7264, and represents the other silent failure that is being made non-silent by this change. * Apply review feedback - Add an ordering test for CLI arguments - Add clarifying comments on affected functions - Tidy up test assertions to be more pythonic Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc/whatsnew/fragments/_template.rst')
0 files changed, 0 insertions, 0 deletions