Skip to content

Commit

Permalink
build: pylint can run in parallel
Browse files Browse the repository at this point in the history
But for some reason finds three new violations when you do?
  • Loading branch information
nedbat committed May 21, 2024
1 parent 60a5d65 commit 535ddc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions coverage/pytracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 535ddc3

Please sign in to comment.