pre-commit: update blacken-docs 1.0.0 -> 1.6.0

This commit is contained in:
Ran Benita 2020-04-24 21:50:20 +03:00
parent cbca9f1def
commit 38c9d59ddc
3 changed files with 7 additions and 5 deletions

View File

@ -5,7 +5,7 @@ repos:
- id: black
args: [--safe, --quiet]
- repo: https://github.com/asottile/blacken-docs
rev: v1.0.0
rev: v1.6.0
hooks:
- id: blacken-docs
additional_dependencies: [black==19.10b0]

View File

@ -27,10 +27,10 @@ def param(*values, **kw):
.. code-block:: python
@pytest.mark.parametrize("test_input,expected", [
("3+5", 8),
pytest.param("6*9", 42, marks=pytest.mark.xfail),
])
@pytest.mark.parametrize(
"test_input,expected",
[("3+5", 8), pytest.param("6*9", 42, marks=pytest.mark.xfail),],
)
def test_eval(test_input, expected):
assert eval(test_input) == expected

View File

@ -117,6 +117,8 @@ class MonkeyPatch:
.. code-block:: python
import functools
def test_partial(monkeypatch):
with monkeypatch.context() as m:
m.setattr(functools, "partial", 3)