Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve docs clarity on loading custom checkers - FIXED (#7502)
* Improve docs clarity on loading custom checkers Whilst the docs on testing custom checkers do touch on the fact the module has to be in your load path, there are some restrictions that were not made clear before. Specifically, the init-hook configuration item (which is often used explicitly to change the sys.path) is not automatically sufficient. If the init hook is in a file, but the load-plugins argument is passed in the CLI, then the plugins are loaded before the init-hook has run, and so will not be imported. In this case, the failure can also be silent, so the outcome is a lint that will simply not contain any information from the checker, as opposed to a run that will error. This corner case may merit fixing in a separate PR, that is to be confirmed. Closes #7264 Co-authored-by: Daniël van Noord <[email protected]>
- Loading branch information