Skip to content

Commit

Permalink
Document method of clearing inference cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored and DanielNoord committed Mar 29, 2022
1 parent f616061 commit 44ddbdf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/user_guide/run.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ the stream outputs to a file:
This would be useful to capture pylint output in an open stream which
can be passed onto another program.

If your program expects that the files being linted might be edited
between runs, you will need to clear pylint's inference cache:

.. sourcecode:: python

from pylint.lint import pylinter
pylinter.MANAGER.clear_cache()


Command line options
--------------------
Expand Down

0 comments on commit 44ddbdf

Please sign in to comment.