diff --git a/pyproject.toml b/pyproject.toml index 3a347fce4..202d548d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [tool.black] line-length = 100 -target-versions = ['py38', 'py39', 'py310', 'py311', 'py312'] +target-version = ['py38', 'py39', 'py310', 'py311', 'py312'] [tool.towncrier] single_file = false diff --git a/qiskit_ibm_runtime/options/resilience_options.py b/qiskit_ibm_runtime/options/resilience_options.py index 8714ca52e..a7b99ff86 100644 --- a/qiskit_ibm_runtime/options/resilience_options.py +++ b/qiskit_ibm_runtime/options/resilience_options.py @@ -24,9 +24,7 @@ from .layer_noise_learning_options import LayerNoiseLearningOptions -NoiseAmplifierType = Literal[ - "LocalFoldingAmplifier", -] +NoiseAmplifierType = Literal["LocalFoldingAmplifier",] ExtrapolatorType = Literal[ "LinearExtrapolator", "QuadraticExtrapolator", diff --git a/qiskit_ibm_runtime/qiskit_runtime_service.py b/qiskit_ibm_runtime/qiskit_runtime_service.py index 6b6516e65..7d7de8830 100644 --- a/qiskit_ibm_runtime/qiskit_runtime_service.py +++ b/qiskit_ibm_runtime/qiskit_runtime_service.py @@ -884,9 +884,9 @@ def run( max_execution_time=qrt_options.max_execution_time, start_session=start_session, session_time=qrt_options.session_time, - channel_strategy=None - if self._channel_strategy == "default" - else self._channel_strategy, + channel_strategy=( + None if self._channel_strategy == "default" else self._channel_strategy + ), ) if self._channel == "ibm_quantum": messages = response.get("messages") diff --git a/qiskit_ibm_runtime/utils/queueinfo.py b/qiskit_ibm_runtime/utils/queueinfo.py index 1fc9e19a4..6dc59ad56 100644 --- a/qiskit_ibm_runtime/utils/queueinfo.py +++ b/qiskit_ibm_runtime/utils/queueinfo.py @@ -35,7 +35,7 @@ def __init__( group_priority: Optional[float] = None, project_priority: Optional[float] = None, job_id: Optional[str] = None, - **kwargs: Any + **kwargs: Any, ) -> None: """QueueInfo constructor. diff --git a/requirements-dev.txt b/requirements-dev.txt index 9cc86ef00..cda3f6ebc 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -9,7 +9,7 @@ nbformat>=4.4.0 nbconvert>=5.3.1 qiskit-aer>=0.11 websockets>=8 -black~=22.0 +black~=24.1 coverage>=6.3 pylatexenc scikit-learn diff --git a/test/utils.py b/test/utils.py index 6d377cbb5..c4c8045bf 100644 --- a/test/utils.py +++ b/test/utils.py @@ -322,8 +322,8 @@ def get_mocked_backend( ) mock_backend.name = name mock_backend._instance = None - mock_service.backend = ( - lambda name, **kwargs: mock_backend if name == mock_backend.name else None + mock_service.backend = lambda name, **kwargs: ( + mock_backend if name == mock_backend.name else None ) return mock_backend