Skip to content

Commit 6be842e

Browse files
jacobtylerwallsDanielNoord
authored andcommitted
Clear cache between primer package runs
1 parent 29cbf1a commit 6be842e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pylint/testutils/_primer/primer_run_command.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def _lint_package(
7777
# Duplicate code takes too long and is relatively safe
7878
# TODO: Find a way to allow cyclic-import and compare output correctly
7979
disables = ["--disable=duplicate-code,cyclic-import"]
80-
arguments = data.pylint_args + enables + disables
80+
additional = ["--clear-cache-post-run=y"]
81+
arguments = data.pylint_args + enables + disables + additional
8182
output = StringIO()
8283
reporter = JSONReporter(output)
8384
print(f"Running 'pylint {', '.join(arguments)}'")

0 commit comments

Comments
 (0)