Skip to content

Commit d2b1682

Browse files
Black Tests Now Passing: Changed Code Format (#210)
Made changes to certain files failing the black lint test.
1 parent c213d58 commit d2b1682

File tree

13 files changed

+18
-32
lines changed

13 files changed

+18
-32
lines changed

.github/actions/install_requirements/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ runs:
3636
shell: bash
3737

3838
- name: Upload lockfiles
39-
uses: actions/upload-artifact@v3
39+
uses: actions/upload-artifact@v4
4040
with:
4141
name: lockfiles
4242
path: lockfiles

examples/devices/counter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ class CounterDevice(Device):
2323
"""A simple device which increments a value."""
2424

2525
#: An empty typed mapping of input values
26-
class Inputs(TypedDict):
27-
...
26+
class Inputs(TypedDict): ...
2827

2928
#: A typed mapping containing the 'value' output value
3029
class Outputs(TypedDict):

examples/devices/isolated_device.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ class IsolatedBoxDevice(Device):
2121
The device has no inputs or outputs and interacts solely through adapters.
2222
"""
2323

24-
class Inputs(TypedDict):
25-
...
24+
class Inputs(TypedDict): ...
2625

27-
class Outputs(TypedDict):
28-
...
26+
class Outputs(TypedDict): ...
2927

3028
def __init__(self, initial_value: float = 2) -> None:
3129
"""Constructor which configures the initial value

examples/devices/remote_controlled.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ class RemoteControlledDevice(Device):
2222
"""A trivial toy device which is controlled by an adapter."""
2323

2424
#: An empty typed mapping of device inputs
25-
class Inputs(TypedDict):
26-
...
25+
class Inputs(TypedDict): ...
2726

2827
#: A typed mapping containing the 'observed' output value
2928
class Outputs(TypedDict):

examples/devices/trampoline.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ class TrampolineDevice(Device):
1616
"""A trivial toy device which requests a callback every update."""
1717

1818
#: An empty typed mapping of device inputs
19-
class Inputs(TypedDict):
20-
...
19+
class Inputs(TypedDict): ...
2120

2221
#: An empty typed mapping of device outputs
23-
class Outputs(TypedDict):
24-
...
22+
class Outputs(TypedDict): ...
2523

2624
def __init__(self, callback_period: int = int(1e9)) -> None:
2725
"""A constructor of the sink which configures the device callback period.
@@ -58,8 +56,7 @@ class RandomTrampolineDevice(Device):
5856
"""A trivial toy device which produced a random output and requests a callback."""
5957

6058
#: An empty typed mapping of device inputs
61-
class Inputs(TypedDict):
62-
...
59+
class Inputs(TypedDict): ...
6360

6461
#: A typed mapping containing the 'output' output value
6562
class Outputs(TypedDict):

src/tickit/adapters/http.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ def get_endpoints(self) -> Iterable[Tuple[HttpEndpoint, Callable]]:
2727
if endpoint is not None and isinstance(endpoint, HttpEndpoint):
2828
yield endpoint, func
2929

30-
def after_update(self) -> None:
31-
...
30+
def after_update(self) -> None: ...

src/tickit/adapters/io/zeromq_push_io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121

2222
@runtime_checkable
2323
class SocketFactory(Protocol):
24-
async def __call__(self, __host: str, __port: int) -> aiozmq.ZmqStream:
25-
...
24+
async def __call__(self, __host: str, __port: int) -> aiozmq.ZmqStream: ...
2625

2726

2827
async def create_zmq_push_socket(host: str, port: int) -> aiozmq.ZmqStream:

src/tickit/adapters/tcp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ class CommandAdapter(Interpreter[AnyStr]):
5656
def byte_format(self) -> ByteFormat:
5757
return self._byte_format
5858

59-
def after_update(self) -> None:
60-
...
59+
def after_update(self) -> None: ...
6160

6261
async def handle_message(
6362
self,

src/tickit/adapters/zmq.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ def add_message_to_stream(self, message: ZeroMqMessage) -> None:
3131
async def next_message(self) -> ZeroMqMessage:
3232
return await self._ensure_queue().get()
3333

34-
def after_update(self) -> None:
35-
...
34+
def after_update(self) -> None: ...
3635

3736
def _ensure_queue(self) -> asyncio.Queue:
3837
if self._message_queue is None:

src/tickit/core/adapter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ class AdapterIo(ABC, Generic[A]):
2222
"""Io logic with a setup method for an adapter object."""
2323

2424
@abstractmethod
25-
async def setup(self, adapter: A, raise_interrupt: RaiseInterrupt) -> None:
26-
...
25+
async def setup(self, adapter: A, raise_interrupt: RaiseInterrupt) -> None: ...
2726

2827

2928
class AdapterContainer(Generic[A]):

0 commit comments

Comments
 (0)