Skip to content

Commit

Permalink
formatting: consider dvc-render as a known first party for ordering i…
Browse files Browse the repository at this point in the history
…mports
  • Loading branch information
skshetry committed May 23, 2022
1 parent 0c5a185 commit 60cbcec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dvc/commands/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ def _props(self):
def run(self):
from pathlib import Path

from dvc_render import render_html

from dvc.render.match import match_renderers
from dvc_render import render_html

if self.args.show_vega:
if not self.args.targets:
Expand Down
1 change: 1 addition & 0 deletions dvc/render/match.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import TYPE_CHECKING, Dict, List, Optional

import dpath.util

from dvc_render import RENDERERS

from .convert import to_datapoints
Expand Down
3 changes: 1 addition & 2 deletions dvc/repo/plots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,8 @@ def _unset(out, props):
out.plot.pop(prop)

def modify(self, path, props=None, unset=None):
from dvc_render.vega_templates import get_template

from dvc.dvcfile import Dvcfile
from dvc_render.vega_templates import get_template

props = props or {}
template = props.get("template")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exclude = '''

[tool.isort]
profile = "black"
known_first_party = ["dvc", "dvc_data", "dvc_objects", "tests"]
known_first_party = ["dvc", "dvc_data", "dvc_objects", "dvc_render", "tests"]
line_length = 79

[tool.pytest.ini_options]
Expand Down

0 comments on commit 60cbcec

Please sign in to comment.