diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae2c911..aafdcf8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: check-yaml - id: debug-statements - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/pycqa/isort diff --git a/src/qtics/instruments/network/NA_N9916A.py b/src/qtics/instruments/network/NA_N9916A.py index aa9ab15..3831dee 100644 --- a/src/qtics/instruments/network/NA_N9916A.py +++ b/src/qtics/instruments/network/NA_N9916A.py @@ -6,6 +6,7 @@ The code for query_data() was partially taken from https://github.com/morgan-at-keysight/socketscpi """ + import time from abc import ABC, abstractmethod from typing import Tuple diff --git a/src/qtics/instruments/network/RS_SMA100B.py b/src/qtics/instruments/network/RS_SMA100B.py index f3cd0e8..86ea6a5 100644 --- a/src/qtics/instruments/network/RS_SMA100B.py +++ b/src/qtics/instruments/network/RS_SMA100B.py @@ -4,6 +4,7 @@ .. module:: RS_SMA100B.py .. moduleauthor:: Marco Gobbo """ + from qtics.network_inst import NetworkInst diff --git a/src/qtics/instruments/serial/synth_FSL0010.py b/src/qtics/instruments/serial/synth_FSL0010.py index 82b4c72..8d52ffd 100644 --- a/src/qtics/instruments/serial/synth_FSL0010.py +++ b/src/qtics/instruments/serial/synth_FSL0010.py @@ -4,6 +4,7 @@ .. module:: synth_FSL0010.py .. moduleauthor:: Pietro Campana """ + from typing import Literal import serial diff --git a/src/qtics/network_inst.py b/src/qtics/network_inst.py index 5ad90e0..403dd01 100644 --- a/src/qtics/network_inst.py +++ b/src/qtics/network_inst.py @@ -6,6 +6,7 @@ The code was partially taken from https://github.com/morgan-at-keysight/socketscpi """ + import ipaddress import socket import time diff --git a/src/qtics/serial_inst.py b/src/qtics/serial_inst.py index 85971d9..141985b 100644 --- a/src/qtics/serial_inst.py +++ b/src/qtics/serial_inst.py @@ -1,4 +1,5 @@ """Base instrument for serial connections.""" + import time from typing import Literal diff --git a/tests/test_network_inst.py b/tests/test_network_inst.py index 753a649..44ed860 100644 --- a/tests/test_network_inst.py +++ b/tests/test_network_inst.py @@ -1,4 +1,5 @@ """Test network instrument base class.""" + import socket import pytest