Skip to content

Commit

Permalink
Merge pull request #844 from pytest-dev/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
nicoddemus authored Nov 15, 2022
2 parents 6b6f133 + 4a33933 commit bb27210
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.0
rev: v3.2.2
hooks:
- id: pyupgrade
args: [--py3-plus]
Expand All @@ -39,7 +39,7 @@ repos:
language: python
additional_dependencies: [pygments, restructuredtext_lint]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
rev: v0.990
hooks:
- id: mypy
files: ^(src/|testing/)
Expand Down
5 changes: 2 additions & 3 deletions testing/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,18 @@ def __str__(self):


class WorkerSetup:
use_callback = False

def __init__(self, request, pytester: pytest.Pytester) -> None:
self.request = request
self.pytester = pytester
self.use_callback = False
self.events = Queue() # type: ignore[var-annotated]

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

class DummyMananger:
testrunuid = uuid.uuid4().hex
Expand Down

0 comments on commit bb27210

Please sign in to comment.