Merge pull request #1110 from pytest-dev/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Ronny Pfannschmidt
2024-07-24 00:12:19 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
repos: repos:
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.2" rev: "v0.5.4"
hooks: hooks:
- id: ruff - id: ruff
args: ["--fix"] args: ["--fix"]
@@ -23,7 +23,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: v1.10.1 rev: v1.11.0
hooks: hooks:
- id: mypy - id: mypy
files: ^(src/|testing/) files: ^(src/|testing/)

View File

@@ -166,7 +166,7 @@ def init_worker_session(
import sys import sys
outchannel = channel.gateway.newchannel() outchannel = channel.gateway.newchannel()
sys.stdout = sys.stderr = outchannel.makefile("w") # type: ignore[assignment] sys.stdout = sys.stderr = outchannel.makefile("w")
channel.send(outchannel) channel.send(outchannel)
# prune sys.path to not contain relative paths # prune sys.path to not contain relative paths
newpaths = [] newpaths = []