Merge pull request #844 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
@@ -26,7 +26,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v3.2.0
|
rev: v3.2.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py3-plus]
|
args: [--py3-plus]
|
||||||
@@ -39,7 +39,7 @@ repos:
|
|||||||
language: python
|
language: python
|
||||||
additional_dependencies: [pygments, restructuredtext_lint]
|
additional_dependencies: [pygments, restructuredtext_lint]
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v0.982
|
rev: v0.990
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
files: ^(src/|testing/)
|
files: ^(src/|testing/)
|
||||||
|
|||||||
@@ -29,11 +29,10 @@ class EventCall:
|
|||||||
|
|
||||||
|
|
||||||
class WorkerSetup:
|
class WorkerSetup:
|
||||||
use_callback = False
|
|
||||||
|
|
||||||
def __init__(self, request, pytester: pytest.Pytester) -> None:
|
def __init__(self, request, pytester: pytest.Pytester) -> None:
|
||||||
self.request = request
|
self.request = request
|
||||||
self.pytester = pytester
|
self.pytester = pytester
|
||||||
|
self.use_callback = False
|
||||||
self.events = Queue() # type: ignore[var-annotated]
|
self.events = Queue() # type: ignore[var-annotated]
|
||||||
|
|
||||||
def setup(self) -> None:
|
def setup(self) -> None:
|
||||||
@@ -41,7 +40,7 @@ class WorkerSetup:
|
|||||||
# import os ; os.environ['EXECNET_DEBUG'] = "2"
|
# import os ; os.environ['EXECNET_DEBUG'] = "2"
|
||||||
self.gateway = execnet.makegateway()
|
self.gateway = execnet.makegateway()
|
||||||
self.config = config = self.pytester.parseconfigure()
|
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:
|
class DummyMananger:
|
||||||
testrunuid = uuid.uuid4().hex
|
testrunuid = uuid.uuid4().hex
|
||||||
|
|||||||
Reference in New Issue
Block a user