pre-commit: update blacken-docs 1.0.0 -> 1.6.0
This commit is contained in:
parent
cbca9f1def
commit
38c9d59ddc
|
@ -5,7 +5,7 @@ repos:
|
||||||
- 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.0.0
|
rev: v1.6.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: blacken-docs
|
- id: blacken-docs
|
||||||
additional_dependencies: [black==19.10b0]
|
additional_dependencies: [black==19.10b0]
|
||||||
|
|
|
@ -27,10 +27,10 @@ def param(*values, **kw):
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
@pytest.mark.parametrize("test_input,expected", [
|
@pytest.mark.parametrize(
|
||||||
("3+5", 8),
|
"test_input,expected",
|
||||||
pytest.param("6*9", 42, marks=pytest.mark.xfail),
|
[("3+5", 8), pytest.param("6*9", 42, marks=pytest.mark.xfail),],
|
||||||
])
|
)
|
||||||
def test_eval(test_input, expected):
|
def test_eval(test_input, expected):
|
||||||
assert eval(test_input) == expected
|
assert eval(test_input) == expected
|
||||||
|
|
||||||
|
|
|
@ -117,6 +117,8 @@ class MonkeyPatch:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
|
|
||||||
|
|
||||||
def test_partial(monkeypatch):
|
def test_partial(monkeypatch):
|
||||||
with monkeypatch.context() as m:
|
with monkeypatch.context() as m:
|
||||||
m.setattr(functools, "partial", 3)
|
m.setattr(functools, "partial", 3)
|
||||||
|
|
Loading…
Reference in New Issue