File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change
1
+ default_language_version :
2
+ python : " 3.10"
1
3
repos :
2
4
- repo : https://github.com/psf/black
3
5
rev : 22.8.0
21
23
exclude : _pytest/(debugging|hookspec).py
22
24
language_version : python3
23
25
- repo : https://github.com/PyCQA/autoflake
24
- rev : v1.6.0
26
+ rev : v1.6.1
25
27
hooks :
26
28
- id : autoflake
27
29
name : autoflake
@@ -37,12 +39,12 @@ repos:
37
39
- flake8-typing-imports==1.12.0
38
40
- flake8-docstrings==1.5.0
39
41
- repo : https://github.com/asottile/reorder_python_imports
40
- rev : v3.8.2
42
+ rev : v3.8.3
41
43
hooks :
42
44
- id : reorder-python-imports
43
45
args : ['--application-directories=.:src', --py37-plus]
44
46
- repo : https://github.com/asottile/pyupgrade
45
- rev : v2.38.0
47
+ rev : v2.38.2
46
48
hooks :
47
49
- id : pyupgrade
48
50
args : [--py37-plus]
56
58
hooks :
57
59
- id : python-use-type-annotations
58
60
- repo : https://github.com/pre-commit/mirrors-mypy
59
- rev : v0.971
61
+ rev : v0.981
60
62
hooks :
61
63
- id : mypy
62
64
files : ^(src/|testing/)
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ def warns( # noqa: F811
167
167
return func (* args [1 :], ** kwargs )
168
168
169
169
170
- class WarningsRecorder (warnings .catch_warnings ):
170
+ class WarningsRecorder (warnings .catch_warnings ): # type:ignore[type-arg]
171
171
"""A context manager to record raised warnings.
172
172
173
173
Each recorded warning is an instance of :class:`warnings.WarningMessage`.
You can’t perform that action at this time.
0 commit comments