File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ class DummyTask:
27
27
def test_pytask_execute_task_setup (monkeypatch , found_latexmk , expectation ):
28
28
"""Make sure that the task setup raises errors."""
29
29
# 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
+ )
31
33
32
34
task = DummyTask ()
33
35
task .markers = [Mark ("latex" , (), {})]
@@ -230,7 +232,9 @@ def task_compile_document():
230
232
tmp_path .joinpath ("document.tex" ).write_text (textwrap .dedent (latex_source ))
231
233
232
234
# 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
+ )
234
238
235
239
session = main ({"paths" : tmp_path })
236
240
You can’t perform that action at this time.
0 commit comments