Skip to content

Commit e9d5249

Browse files
[pre-commit.ci] pre-commit autoupdate (#38)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](astral-sh/ruff-pre-commit@v0.8.6...v0.9.4) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c375ec6 commit e9d5249

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: end-of-file-fixer
1717
- id: trailing-whitespace
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.8.6
19+
rev: v0.9.4
2020
hooks:
2121
- id: ruff
2222
args: [ --fix ]

tests/test_rerender.py

+15-15
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def test_rerender_local_stderr(capfd):
4747

4848
assert "git commit -m " in captured.err
4949
assert msg is not None, f"msg: {msg}\nout: {captured.out}\nerr: {captured.err}"
50-
assert msg.startswith(
51-
"MNT:"
52-
), f"msg: {msg}\nout: {captured.out}\nerr: {captured.err}"
50+
assert msg.startswith("MNT:"), (
51+
f"msg: {msg}\nout: {captured.out}\nerr: {captured.err}"
52+
)
5353

5454

5555
def test_rerender_local_git_staged():
@@ -142,18 +142,18 @@ def test_rerender_containerized_same_as_local(use_containers, capfd):
142142
print(f"out: {captured.out}\nerr: {captured.err}")
143143

144144
if "git commit -m " in captured.err:
145-
assert (
146-
msg is not None
147-
), f"msg: {msg}\nout: {captured.out}\nerr: {captured.err}"
148-
assert msg.startswith(
149-
"MNT:"
150-
), f"msg: {msg}\nout: {captured.out}\nerr: {captured.err}"
145+
assert msg is not None, (
146+
f"msg: {msg}\nout: {captured.out}\nerr: {captured.err}"
147+
)
148+
assert msg.startswith("MNT:"), (
149+
f"msg: {msg}\nout: {captured.out}\nerr: {captured.err}"
150+
)
151151
with pushd("conda-forge-feedstock-check-solvable-feedstock"):
152152
assert os.path.exists(".azure-pipelines/azure-pipelines-linux.yml")
153153
else:
154-
assert (
155-
msg is None
156-
), f"msg: {msg}\nout: {captured.out}\nerr: {captured.err}"
154+
assert msg is None, (
155+
f"msg: {msg}\nout: {captured.out}\nerr: {captured.err}"
156+
)
157157

158158
with pushd(tmpdir_local):
159159
subprocess.run(
@@ -209,9 +209,9 @@ def test_rerender_containerized_same_as_local(use_containers, capfd):
209209
rel_local_fnames = {
210210
os.path.relpath(fname, tmpdir_local) for fname in local_fnames
211211
}
212-
assert (
213-
rel_cont_fnames == rel_local_fnames
214-
), f"{rel_cont_fnames} != {rel_local_fnames}"
212+
assert rel_cont_fnames == rel_local_fnames, (
213+
f"{rel_cont_fnames} != {rel_local_fnames}"
214+
)
215215

216216
for cfname in cont_fnames:
217217
lfname = os.path.join(tmpdir_local, os.path.relpath(cfname, tmpdir_cont))

0 commit comments

Comments
 (0)