Skip to content

Commit 535ddc3

Browse files
committed
build: pylint can run in parallel
But for some reason finds three new violations when you do?
1 parent 60a5d65 commit 535ddc3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

coverage/pytracer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ def _trace(
166166
if event == "call":
167167
# Should we start a new context?
168168
if self.should_start_context and self.context is None:
169-
context_maybe = self.should_start_context(frame)
169+
context_maybe = self.should_start_context(frame) # pylint: disable=not-callable
170170
if context_maybe is not None:
171171
self.context = context_maybe
172172
started_context = True
173173
assert self.switch_context is not None
174-
self.switch_context(self.context)
174+
self.switch_context(self.context) # pylint: disable=not-callable
175175
else:
176176
started_context = False
177177
else:
@@ -280,7 +280,7 @@ def _trace(
280280
if self.started_context:
281281
assert self.switch_context is not None
282282
self.context = None
283-
self.switch_context(None)
283+
self.switch_context(None) # pylint: disable=not-callable
284284
return self._cached_bound_method_trace
285285

286286
def start(self) -> TTraceFn:

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ commands =
9797
# If this command fails, see the comment at the top of doc/cmd.rst
9898
python -m cogapp -cP --check --verbosity=1 doc/*.rst
9999
python -m cogapp -cP --check --verbosity=1 .github/workflows/*.yml
100-
python -m pylint --notes= --ignore-paths 'doc/_build/.*' {env:LINTABLE}
100+
python -m pylint -j 0 --notes= --ignore-paths 'doc/_build/.*' {env:LINTABLE}
101101
check-manifest --ignore 'doc/sample_html/*,.treerc'
102102
# If 'build -q' becomes a thing (https://github.com/pypa/build/issues/188),
103103
# this can be simplified:

0 commit comments

Comments
 (0)