Skip to content

Commit 5d1b974

Browse files
committed
Fix pre-commit.
1 parent ec0e46d commit 5d1b974

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_execute.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class DummyTask:
2727
def test_pytask_execute_task_setup(monkeypatch, found_latexmk, expectation):
2828
"""Make sure that the task setup raises errors."""
2929
# Act like latexmk is installed since we do not test this.
30-
monkeypatch.setattr("pytask_latex.execute.shutil.which", lambda x: found_latexmk)
30+
monkeypatch.setattr(
31+
"pytask_latex.execute.shutil.which", lambda x: found_latexmk # noqa: U100
32+
)
3133

3234
task = DummyTask()
3335
task.markers = [Mark("latex", (), {})]
@@ -230,7 +232,9 @@ def task_compile_document():
230232
tmp_path.joinpath("document.tex").write_text(textwrap.dedent(latex_source))
231233

232234
# Hide latexmk if available.
233-
monkeypatch.setattr("pytask_latex.execute.shutil.which", lambda x: None)
235+
monkeypatch.setattr(
236+
"pytask_latex.execute.shutil.which", lambda x: None # noqa: U100
237+
)
234238

235239
session = main({"paths": tmp_path})
236240

0 commit comments

Comments
 (0)