summaryrefslogtreecommitdiff
path: root/pylintrc
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2022-12-05 16:52:17 -0500
committerGitHub <noreply@github.com>2022-12-05 22:52:17 +0100
commitf860e3fe1c03be81e16732123a1e0cdb247db47f (patch)
tree0dfeaef9382e3f1f5b080570438f250a21abe3dd /pylintrc
parentffef6f0c0e0ad1e54ea412f77e38a8628f3d32c8 (diff)
downloadpylint-git-f860e3fe1c03be81e16732123a1e0cdb247db47f.tar.gz
Add flag `--clear-cache-post-run` to support server-like usage (#7802)
Use this flag if you expect the linted files to be altered between runs, for instance, if using pylint in a server-like mode. The flag clear's astroid's in-memory caches.
Diffstat (limited to 'pylintrc')
-rw-r--r--pylintrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/pylintrc b/pylintrc
index a91481ef7..e15363db1 100644
--- a/pylintrc
+++ b/pylintrc
@@ -68,6 +68,10 @@ fail-under=10.0
# specified are enabled, while categories only check already-enabled messages.
fail-on=
+# Clear in-memory caches upon conclusion of linting. Useful if running pylint in
+# a server-like mode.
+clear-cache-post-run=no
+
[MESSAGES CONTROL]