Skip to content

Commit

Permalink
Codestyle fixes. Make noqa comments more error-specific.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Oct 3, 2024
1 parent 4f28132 commit e120dd3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions glue_plotly/html_exporters/jupyter/tests/test_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

importorskip('glue_jupyter')

from glue_jupyter.bqplot.histogram import BqplotHistogramView # noqa
from glue_jupyter.bqplot.histogram import BqplotHistogramView # noqa: E402

from .test_base import BaseTestJupyterExporter # noqa
from .test_base import BaseTestJupyterExporter # noqa: E402


class TestHistogram(BaseTestJupyterExporter):
Expand Down
6 changes: 3 additions & 3 deletions glue_plotly/html_exporters/jupyter/tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

importorskip('glue_jupyter')

from glue_jupyter.bqplot.image import BqplotImageView # noqa
from glue_jupyter.bqplot.image import BqplotImageView # noqa: E402

from numpy import arange, ones # noqa
from numpy import arange, ones # noqa: E402

from .test_base import BaseTestJupyterExporter # noqa
from .test_base import BaseTestJupyterExporter # noqa: E402


class TestImage(BaseTestJupyterExporter):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import os

from glue.core import Data
from glue_plotly.html_exporters.jupyter.tests.test_base import BaseTestJupyterExporter
from glue_plotly.html_exporters.jupyter.tests.test_base import BaseTestJupyterExporter

from pytest import importorskip

importorskip('glue_jupyter')

from glue_jupyter.ipyvolume import IpyvolumeScatterView
from glue_jupyter.ipyvolume import IpyvolumeScatterView # noqa: E402


class TestScatter3D(BaseTestJupyterExporter):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

importorskip('glue_jupyter')

from glue_jupyter.ipyvolume import IpyvolumeVolumeView
from glue_jupyter.ipyvolume import IpyvolumeVolumeView # noqa: E402

from numpy import arange, ones # noqa: E402


class TestVolume(BaseTestJupyterExporter):

viewer_type = IpyvolumeVolumeView
viewer_type = IpyvolumeVolumeView
tool_id = 'save:jupyter_plotlyvolume'

def make_data(self):
Expand Down
4 changes: 2 additions & 2 deletions glue_plotly/html_exporters/jupyter/tests/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

importorskip('glue_jupyter')

from glue_jupyter.bqplot.profile import BqplotProfileView # noqa
from glue_jupyter.bqplot.profile import BqplotProfileView # noqa: E402

from .test_base import BaseTestJupyterExporter # noqa
from .test_base import BaseTestJupyterExporter # noqa: E402


class TestProfile(BaseTestJupyterExporter):
Expand Down
4 changes: 2 additions & 2 deletions glue_plotly/html_exporters/jupyter/tests/test_scatter2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

importorskip('glue_jupyter')

from glue_jupyter.bqplot.scatter import BqplotScatterView # noqa
from glue_jupyter.bqplot.scatter import BqplotScatterView # noqa: E402

from .test_base import BaseTestJupyterExporter # noqa
from .test_base import BaseTestJupyterExporter # noqa: E402


class TestScatter2D(BaseTestJupyterExporter):
Expand Down

0 comments on commit e120dd3

Please sign in to comment.