Skip to content

Commit bb27210

Browse files
authored
Merge pull request #844 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 6b6f133 + 4a33933 commit bb27210

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
hooks:
2727
- id: flake8
2828
- repo: https://github.com/asottile/pyupgrade
29-
rev: v3.2.0
29+
rev: v3.2.2
3030
hooks:
3131
- id: pyupgrade
3232
args: [--py3-plus]
@@ -39,7 +39,7 @@ repos:
3939
language: python
4040
additional_dependencies: [pygments, restructuredtext_lint]
4141
- repo: https://github.com/pre-commit/mirrors-mypy
42-
rev: v0.982
42+
rev: v0.990
4343
hooks:
4444
- id: mypy
4545
files: ^(src/|testing/)

testing/test_remote.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,18 @@ def __str__(self):
2929

3030

3131
class WorkerSetup:
32-
use_callback = False
33-
3432
def __init__(self, request, pytester: pytest.Pytester) -> None:
3533
self.request = request
3634
self.pytester = pytester
35+
self.use_callback = False
3736
self.events = Queue() # type: ignore[var-annotated]
3837

3938
def setup(self) -> None:
4039
self.pytester.chdir()
4140
# import os ; os.environ['EXECNET_DEBUG'] = "2"
4241
self.gateway = execnet.makegateway()
4342
self.config = config = self.pytester.parseconfigure()
44-
putevent = self.use_callback and self.events.put or None
43+
putevent = self.events.put if self.use_callback else None
4544

4645
class DummyMananger:
4746
testrunuid = uuid.uuid4().hex

0 commit comments

Comments
 (0)