Skip to content

Commit 3c15349

Browse files
authored
Merge pull request #10318 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 680f3e2 + 4da0689 commit 3c15349

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
default_language_version:
2+
python: "3.10"
13
repos:
24
- repo: https://github.com/psf/black
35
rev: 22.8.0
@@ -21,7 +23,7 @@ repos:
2123
exclude: _pytest/(debugging|hookspec).py
2224
language_version: python3
2325
- repo: https://github.com/PyCQA/autoflake
24-
rev: v1.6.0
26+
rev: v1.6.1
2527
hooks:
2628
- id: autoflake
2729
name: autoflake
@@ -37,12 +39,12 @@ repos:
3739
- flake8-typing-imports==1.12.0
3840
- flake8-docstrings==1.5.0
3941
- repo: https://github.com/asottile/reorder_python_imports
40-
rev: v3.8.2
42+
rev: v3.8.3
4143
hooks:
4244
- id: reorder-python-imports
4345
args: ['--application-directories=.:src', --py37-plus]
4446
- repo: https://github.com/asottile/pyupgrade
45-
rev: v2.38.0
47+
rev: v2.38.2
4648
hooks:
4749
- id: pyupgrade
4850
args: [--py37-plus]
@@ -56,7 +58,7 @@ repos:
5658
hooks:
5759
- id: python-use-type-annotations
5860
- repo: https://github.com/pre-commit/mirrors-mypy
59-
rev: v0.971
61+
rev: v0.981
6062
hooks:
6163
- id: mypy
6264
files: ^(src/|testing/)

src/_pytest/recwarn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def warns( # noqa: F811
167167
return func(*args[1:], **kwargs)
168168

169169

170-
class WarningsRecorder(warnings.catch_warnings):
170+
class WarningsRecorder(warnings.catch_warnings): # type:ignore[type-arg]
171171
"""A context manager to record raised warnings.
172172
173173
Each recorded warning is an instance of :class:`warnings.WarningMessage`.

0 commit comments

Comments
 (0)