Skip to content

Commit b91e542

Browse files
authored
update ruff to v0.9.9 (#365)
1 parent 6956a3f commit b91e542

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version.
4-
rev: v0.6.2
4+
rev: v0.9.9
55
hooks:
66
# Run the linter.
77
- id: ruff

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ dev = [
4949
"pytest",
5050
"qiskit[visualization]",
5151
"qiskit-sphinx-theme",
52-
"ruff == 0.6.2",
52+
"ruff == 0.9.9",
5353
"sphinx",
5454
"sphinx-autodoc-typehints",
5555
]

python/ffsim/states/wick.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def expectation_one_body_product(
8686
one_rdm if indices.index(c_i) < indices.index(a_i) else anti_one_rdm
8787
)
8888
result += sign * contract(
89-
f'{",".join(subscripts)}->',
89+
f"{','.join(subscripts)}->",
9090
*one_body_tensors,
9191
*tensors[:n_tensors],
9292
optimize="greedy",

python/ffsim/trotter/qdrift.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def qdrift_probabilities(
304304
elif sampling_method == "optimal":
305305
if one_rdm is None:
306306
raise ValueError(
307-
"The 'optimal' sampling method requires one_rdm to be " "specified."
307+
"The 'optimal' sampling method requires one_rdm to be specified."
308308
)
309309
variances = np.zeros(n_terms)
310310
one_body_tensor = scipy.linalg.block_diag(

0 commit comments

Comments
 (0)