Skip to content

Commit

Permalink
update black (Qiskit#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-imamichi authored May 14, 2024
1 parent 1f6922c commit 58722ee
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions qiskit_ibm_runtime/options/resilience_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
from .layer_noise_learning_options import LayerNoiseLearningOptions


NoiseAmplifierType = Literal[
"LocalFoldingAmplifier",
]
NoiseAmplifierType = Literal["LocalFoldingAmplifier",]
ExtrapolatorType = Literal[
"LinearExtrapolator",
"QuadraticExtrapolator",
Expand Down
6 changes: 3 additions & 3 deletions qiskit_ibm_runtime/qiskit_runtime_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion qiskit_ibm_runtime/utils/queueinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58722ee

Please sign in to comment.