Skip to content

Commit

Permalink
Merge pull request #193 from hyperrealist/fix_black_lint_errors
Browse files Browse the repository at this point in the history
Fix `black` lint errors
  • Loading branch information
dmgav authored Feb 2, 2024
2 parents 362778f + a7ca69c commit a363bca
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions bluesky_widgets/_matplotlib_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This joins our Axes model to matplotlib.axes.Axes. It is used by
bluesky_widgets.qt.figures and bluesky_widgets.jupyter.figures.
"""

import logging

from .models.plot_specs import Axes, Line, Image
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/apps/queue_monitor/widgets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Extendeding and supplementing the widgets import bluesky-widgets
"""

from bluesky_widgets.qt.run_engine_client import (
QtReEnvironmentControls,
QtReManagerConnection,
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/advanced/qt_viewer_with_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
python -m bluesky_widgets.examples.advanced.qt_viewer_with_search localhost:XXXXX
"""

from bluesky_widgets.qt import Window
from bluesky_widgets.qt import gui_qt
from bluesky_widgets.models.search import SearchList, Search
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/headless_figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
and it will print to stdout the names of the figures that it creates, one per line
"""

import tempfile

from bluesky import RunEngine
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/ipy_qt_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
In [1]: %run -m bluesky_widgets.examples.ipy_qt_figure
"""

from bluesky import RunEngine
from bluesky.plans import scan
from ophyd.sim import motor, det
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/ipy_qt_figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
In [1]: %run -m bluesky_widgets.examples.ipy_qt_figures
"""

from bluesky import RunEngine
from bluesky.plans import scan
from ophyd.sim import motor, det
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/ipy_qt_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
In [1]: %run -m bluesky_widgets.examples.ipy_qt_images
"""

from bluesky_widgets.examples.utils.generate_msgpack_data import get_catalog
from bluesky_widgets.models.auto_plot_builders import AutoImages
from bluesky_widgets.qt.figures import QtFigures
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/ipy_qt_rastered_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
In [1]: %run -m bluesky_widgets.examples.ipy_qt_rastered_image
"""

from bluesky_widgets.examples.utils.generate_msgpack_data import get_catalog
from bluesky_widgets.models.plot_builders import RasteredImages
from bluesky_widgets.qt.figures import QtFigure
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/jupyter_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
python -m bluesky_widgets.examples.qt_viewer_with_search localhost:XXXXX
"""

from bluesky_widgets.models.auto_plot_builders import AutoLines
from bluesky_widgets.jupyter.figures import JupyterFigures

Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/kafka_figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
For each Run, it will generate thumbnails and save them to a temporary
directory. The filepaths will be printed to the stdout, one per line.
"""

from functools import partial
import os
import tempfile
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/pyFAI_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
The changes are marked below with comments.
"""

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/qt_app_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
python -m bluesky_widgets.examples.qt_app_integration
"""

from qtpy.QtWidgets import QApplication, QVBoxLayout, QLabel, QMainWindow, QWidget


Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/qt_app_search_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
python -m bluesky_widgets.examples.qt_app_integration
"""

from qtpy.QtWidgets import (
QApplication,
QPushButton,
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/qt_run_tree_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
application this would be used in conjunction with a data browser/search box or
on the command line to explore runs.
"""

from bluesky_widgets.models.run_tree import RunTree
from bluesky_widgets.qt import Window
from bluesky_widgets.qt import gui_qt
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/qt_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
terminal. In a real application, this could kick off data processing, export,
or visualization.
"""

from bluesky_widgets.qt import Window, gui_qt
from bluesky_widgets.models.search import SearchList, Search
from bluesky_widgets.qt.search import QtSearches
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/examples/utils/stream_data_kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
It will publish Bluesky documents to kafka running on localhost:9092
until stopped.
"""

import asyncio
import logging
from functools import partial
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/models/plot_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
not know about their parents: thus, Figures know about their Axes and Axes know
about their Artists.
"""

import collections
import uuid as uuid_module

Expand Down
6 changes: 3 additions & 3 deletions bluesky_widgets/models/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


class InvertedRange(ValueError):
...
pass


"""
Expand All @@ -38,11 +38,11 @@ class Query(collections.abc.Mapping):

@abc.abstractproperty
def query(self):
...
pass

@abc.abstractproperty
def kwargs(self):
...
pass

def __iter__(self):
return iter(self.query)
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/qt/_main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Custom Qt widgets that serve as native objects that the public-facing elements
wrap.
"""

import time

from qtpy.QtWidgets import ( # noqa: E402
Expand Down
1 change: 1 addition & 0 deletions bluesky_widgets/qt/threading.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Vendored from napari._qt.threading
"""

import inspect
import time
from functools import wraps
Expand Down

0 comments on commit a363bca

Please sign in to comment.