From 535ddc3a77c256e163e13c574f91c269bb5610d7 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 21 May 2024 19:00:09 -0400 Subject: [PATCH] build: pylint can run in parallel But for some reason finds three new violations when you do? --- coverage/pytracer.py | 6 +++--- tox.ini | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coverage/pytracer.py b/coverage/pytracer.py index 69d52c948..355810f94 100644 --- a/coverage/pytracer.py +++ b/coverage/pytracer.py @@ -166,12 +166,12 @@ def _trace( if event == "call": # Should we start a new context? if self.should_start_context and self.context is None: - context_maybe = self.should_start_context(frame) + context_maybe = self.should_start_context(frame) # pylint: disable=not-callable if context_maybe is not None: self.context = context_maybe started_context = True assert self.switch_context is not None - self.switch_context(self.context) + self.switch_context(self.context) # pylint: disable=not-callable else: started_context = False else: @@ -280,7 +280,7 @@ def _trace( if self.started_context: assert self.switch_context is not None self.context = None - self.switch_context(None) + self.switch_context(None) # pylint: disable=not-callable return self._cached_bound_method_trace def start(self) -> TTraceFn: diff --git a/tox.ini b/tox.ini index e3c18b2ae..6b1f9262a 100644 --- a/tox.ini +++ b/tox.ini @@ -97,7 +97,7 @@ commands = # If this command fails, see the comment at the top of doc/cmd.rst python -m cogapp -cP --check --verbosity=1 doc/*.rst python -m cogapp -cP --check --verbosity=1 .github/workflows/*.yml - python -m pylint --notes= --ignore-paths 'doc/_build/.*' {env:LINTABLE} + python -m pylint -j 0 --notes= --ignore-paths 'doc/_build/.*' {env:LINTABLE} check-manifest --ignore 'doc/sample_html/*,.treerc' # If 'build -q' becomes a thing (https://github.com/pypa/build/issues/188), # this can be simplified: