Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 18, 2024
1 parent 7aa2fcc commit 6837f47
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion socs/agents/hwp_supervisor/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ def monitor(self, session, params) -> Tuple[bool, str]:
now = time.time()
session.data['timestamp'] = now

ops = self.hwp_state.update(test_mode = test_mode)
ops = self.hwp_state.update(test_mode=test_mode)
session.data['monitored_sessions'] = ops
session.data['hwp_state'] = asdict(self.hwp_state)

Expand Down
4 changes: 2 additions & 2 deletions socs/testing/device_emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ def create_tcp_relay(self, port):
self._type = 'tcp'
self._sock_bound = False
bkg_read = threading.Thread(name='background',
target=self._read_socket,
kwargs={'port': port})
target=self._read_socket,
kwargs={'port': port})
bkg_read.start()

# wait for socket to bind properly before returning
Expand Down
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

import psutil
import os

import psutil
import pytest


@pytest.fixture(autouse=True)
def check_subprocesses():
# Get a list of child PIDs before the test starts
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/test_scpi_psu_agent_integration.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import time

import ocs
import pytest
from integration.util import docker_compose_file # noqa: F401
from integration.util import create_crossbar_fixture
from ocs.base import OpCode
import time
from ocs.testing import create_agent_runner_fixture, create_client_fixture

from socs.testing.device_emulator import create_device_emulator
Expand Down

0 comments on commit 6837f47

Please sign in to comment.