update black and change line-length to 88 (#8953)

This commit is contained in:
skshetry
2023-02-04 05:28:07 +02:00
committed by GitHub
parent 5d2701341b
commit a86470ccbc
317 changed files with 1520 additions and 3738 deletions
+2 -10
View File
@@ -1,10 +1,4 @@
from dvc.render import (
REVISION_FIELD,
REVISIONS_KEY,
SRC_FIELD,
TYPE_KEY,
VERSION_FIELD,
)
from dvc.render import REVISION_FIELD, REVISIONS_KEY, SRC_FIELD, TYPE_KEY, VERSION_FIELD
from dvc.render.convert import to_json
@@ -56,9 +50,7 @@ def test_to_json_vega(mocker):
def test_to_json_vega_split(mocker):
vega_renderer = mocker.MagicMock()
vega_renderer.TYPE = "vega"
vega_renderer.get_filled_template.return_value = (
'{"this": "is split vega"}'
)
vega_renderer.get_filled_template.return_value = '{"this": "is split vega"}'
vega_renderer.datapoints = [
{
"x": 1,
+3 -11
View File
@@ -1,9 +1,5 @@
from dvc.render import VERSION_FIELD
from dvc.render.match import (
PlotsData,
_squash_plots_properties,
match_defs_renderers,
)
from dvc.render.match import PlotsData, _squash_plots_properties, match_defs_renderers
def test_group_definitions():
@@ -12,9 +8,7 @@ def test_group_definitions():
"v1": {
"definitions": {
"data": {
"config_file_1": {
"data": {"plot_id_1": {}, "plot_id_2": {}}
},
"config_file_1": {"data": {"plot_id_1": {}, "plot_id_2": {}}},
"config_file_2": {"data": {"plot_id_3": {}}},
}
}
@@ -57,9 +51,7 @@ def test_match_renderers(mocker):
},
},
"sources": {
"data": {
"file.json": {"data": [{"x": 1, "y": 1}, {"x": 2, "y": 2}]}
}
"data": {"file.json": {"data": [{"x": 1, "y": 1}, {"x": 2, "y": 2}]}}
},
},
"errored_revision": {