Skip to content

Commit

Permalink
Formatting with new ruff version
Browse files Browse the repository at this point in the history
  • Loading branch information
LatentDream committed Feb 29, 2024
1 parent 9becfcd commit ea8641f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
12 changes: 4 additions & 8 deletions pkgs/flojoy/flojoy/_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,13 @@ class StreamEnum(Enum):
class PipeWriter(Protocol):
"""Protocol for a pipe writer"""

def write(self, data: bytes):
...
def write(self, data: bytes): ...

def fileno(self) -> int:
...
def fileno(self) -> int: ...

def close(self):
...
def close(self): ...

def flush(self):
...
def flush(self): ...


# Abstract Pipe class
Expand Down
1 change: 1 addition & 0 deletions pkgs/flojoy/flojoy/flojoy_node_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def TORCH_NODE(default: Matrix) -> Matrix:
return Matrix(...)
"""

import hashlib
import importlib.metadata
import inspect
Expand Down
1 change: 1 addition & 0 deletions pkgs/flojoy/flojoy/instruments/tektronix/MDO30xx.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Driver for the MDO4000B, MDO4000, MSO4000B, DPO4000B and
MDO3000 series Oscilloscopes.
"""

import textwrap
import time
from functools import partial
Expand Down
3 changes: 2 additions & 1 deletion pkgs/flojoy/flojoy/reconciler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
For example, the ADD node should make a best effort to do something reasonable when a matrix is added to a DataFrame, or a 2 matrices of a different size are added.
For this reason, we've created the `Reconciler` class to handle the process of turning different data types into compatible, easily added objects.
For this reason, we've created the `Reconciler` class to handle the process of turning different data types into compatible, easily added objects.
"""

from typing import Tuple
import numpy

Expand Down

0 comments on commit ea8641f

Please sign in to comment.