Merge pull request #9585 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
commit
90b1c93f7e
|
@ -1,11 +1,11 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 21.12b0
|
rev: 22.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args: [--safe, --quiet]
|
args: [--safe, --quiet]
|
||||||
- repo: https://github.com/asottile/blacken-docs
|
- repo: https://github.com/asottile/blacken-docs
|
||||||
rev: v1.12.0
|
rev: v1.12.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: blacken-docs
|
- id: blacken-docs
|
||||||
additional_dependencies: [black==20.8b1]
|
additional_dependencies: [black==20.8b1]
|
||||||
|
@ -29,7 +29,7 @@ repos:
|
||||||
- flake8-typing-imports==1.12.0
|
- flake8-typing-imports==1.12.0
|
||||||
- flake8-docstrings==1.5.0
|
- flake8-docstrings==1.5.0
|
||||||
- repo: https://github.com/asottile/reorder_python_imports
|
- repo: https://github.com/asottile/reorder_python_imports
|
||||||
rev: v2.6.0
|
rev: v2.7.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: reorder-python-imports
|
- id: reorder-python-imports
|
||||||
args: ['--application-directories=.:src', --py37-plus]
|
args: ['--application-directories=.:src', --py37-plus]
|
||||||
|
|
|
@ -56,7 +56,7 @@ def test_terminalwriter_not_unicode() -> None:
|
||||||
file = io.TextIOWrapper(buffer, encoding="cp1252")
|
file = io.TextIOWrapper(buffer, encoding="cp1252")
|
||||||
tw = terminalwriter.TerminalWriter(file)
|
tw = terminalwriter.TerminalWriter(file)
|
||||||
tw.write("hello 🌀 wôrld אבג", flush=True)
|
tw.write("hello 🌀 wôrld אבג", flush=True)
|
||||||
assert buffer.getvalue() == br"hello \U0001f300 w\xf4rld \u05d0\u05d1\u05d2"
|
assert buffer.getvalue() == rb"hello \U0001f300 w\xf4rld \u05d0\u05d1\u05d2"
|
||||||
|
|
||||||
|
|
||||||
win32 = int(sys.platform == "win32")
|
win32 = int(sys.platform == "win32")
|
||||||
|
|
|
@ -771,7 +771,7 @@ class TestApprox:
|
||||||
def test_expected_value_type_error(self, x, name):
|
def test_expected_value_type_error(self, x, name):
|
||||||
with pytest.raises(
|
with pytest.raises(
|
||||||
TypeError,
|
TypeError,
|
||||||
match=fr"pytest.approx\(\) does not support nested {name}:",
|
match=rf"pytest.approx\(\) does not support nested {name}:",
|
||||||
):
|
):
|
||||||
approx(x)
|
approx(x)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue