Repository: pyodide/pytest-pyodide (language: python)

Issue:
[pre-commit.ci] pre-commit autoupdate
<!--pre-commit.ci start-->
updates:
- [github.com/asottile/pyupgrade: v2.34.0 → v2.37.3](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.3)
- [github.com/hadialqattan/pycln: v1.3.5 → v2.1.1](https://github.com/hadialqattan/pycln/compare/v1.3.5...v2.1.1)
- [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0)
- [github.com/pycqa/flake8: 4.0.1 → 5.0.4](https://github.com/pycqa/flake8/compare/4.0.1...5.0.4)
- [github.com/pre-commit/mirrors-mypy: v0.961 → v0.971](https://github.com/pre-commit/mirrors-mypy/compare/v0.961...v0.971)
- [github.com/codespell-project/codespell: v2.1.0 → v2.2.1](https://github.com/codespell-project/codespell/compare/v2.1.0...v2.2.1)
<!--pre-commit.ci end-->


Discussion / hints:

Fix patch:
diff --git a/.flake8 b/.flake8
index 7d8d112c..fee9b470 100644
--- a/.flake8
+++ b/.flake8
@@ -1,3 +1,3 @@
 [flake8]
-extend-ignore = E203, E402, E501, E731, E741, B950
+extend-ignore = E203, E402, E501, E731, E741, B950, W503
 select = C,E,F,W,B,B9
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e1504335..c028d221 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -22,31 +22,31 @@ repos:
       - id: isort
 
   - repo: https://github.com/asottile/pyupgrade
-    rev: "v2.34.0"
+    rev: "v2.37.3"
     hooks:
       - id: pyupgrade
         args: ["--py310-plus"]
 
   - repo: https://github.com/hadialqattan/pycln
-    rev: "v1.3.5"
+    rev: "v2.1.1"
     hooks:
       - id: pycln
         args: [--config=pyproject.toml]
         stages: [manual]
 
   - repo: https://github.com/psf/black
-    rev: "22.6.0"
+    rev: "22.8.0"
     hooks:
       - id: black
 
   - repo: https://github.com/pycqa/flake8
-    rev: "4.0.1"
+    rev: "5.0.4"
     hooks:
       - id: flake8
         additional_dependencies: [flake8-bugbear]
 
   - repo: https://github.com/pre-commit/mirrors-mypy
-    rev: "v0.961"
+    rev: "v0.971"
     hooks:
       - id: mypy
         exclude: (setup.py|^tests|conftest.py)
@@ -65,7 +65,7 @@ repos:
       - id: shellcheck
 
   - repo: https://github.com/codespell-project/codespell
-    rev: "v2.1.0"
+    rev: "v2.2.1"
     hooks:
       - id: codespell
         args: ["-L", "te,slowy,aray,ba,nd,classs,crate,feld,lits"]


Test patch:
diff --git a/pytest_pyodide/decorator.py b/pytest_pyodide/decorator.py
index 900757b4..952f7c5d 100644
--- a/pytest_pyodide/decorator.py
+++ b/pytest_pyodide/decorator.py
@@ -2,8 +2,9 @@
 import pickle
 import sys
 from base64 import b64decode, b64encode
+from collections.abc import Callable, Collection
 from copy import deepcopy
-from typing import Any, Callable, Collection
+from typing import Any
 
 import pytest
 
diff --git a/pytest_pyodide/runner.py b/pytest_pyodide/runner.py
index 48912d05..16649f09 100644
--- a/pytest_pyodide/runner.py
+++ b/pytest_pyodide/runner.py
@@ -484,7 +484,7 @@ def init_node(self):
         try:
             self.p.expect_exact("READY!!")
         except (pexpect.exceptions.EOF, pexpect.exceptions.TIMEOUT):
-            raise JavascriptException("", self.p.before.decode())
+            raise JavascriptException("", self.p.before.decode()) from None
 
     def get_driver(self):
         self._logs = []
diff --git a/tests/test_decorator.py b/tests/test_decorator.py
index 4b89b184..54e260ca 100644
--- a/tests/test_decorator.py
+++ b/tests/test_decorator.py
@@ -133,7 +133,7 @@ def _load_package_error(*args, **kwargs):
         raise Exception(
             "run_in_pyodide decorator badly messed up the line numbers."
             " This could crash pytest. Printed the traceback to stdout."
-        )
+        ) from None
 
 
 @run_in_pyodide