Skip to content

Commit

Permalink
fix: lint errors like 'W292 no newline at end of file'
Browse files Browse the repository at this point in the history
  • Loading branch information
ssato committed May 18, 2024
1 parent 89e3f31 commit ef7eb8f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions tests/cli/test_extra_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import pathlib


NAMES: list[str] = ("ipath", "opts", "exp", "oname", "ref")
DATA = common.load_data_for_testfile(
__file__, values=(("o", []), ("e", None), ("on", ""), ("r", None))
)
Expand All @@ -36,4 +35,4 @@ def test_cli(
) -> None:
expected = datatypes.Expected(**exp)
tdata = datatypes.TData(ipath, [str(ipath)], opts, expected, oname, ref)
run_main(tdata, tmp_path)
run_main(tdata, tmp_path)
2 changes: 1 addition & 1 deletion tests/cli/test_multi_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ def test_cli(
expected = datatypes.Expected(**exp)
ipaths = sorted(str(p) for p in ipath.parent.glob("*.*"))
tdata = datatypes.TData(ipath, ipaths, opts, expected, oname, ref)
run_main(tdata, tmp_path)
run_main(tdata, tmp_path)
2 changes: 1 addition & 1 deletion tests/cli/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ def test_cli(
) -> None:
expected = datatypes.Expected(**exp)
tdata = datatypes.TData(ipath, [str(ipath)], opts, expected, oname, ref)
run_main(tdata, tmp_path)
run_main(tdata, tmp_path)
2 changes: 1 addition & 1 deletion tests/cli/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ def test_cli(
tdata = datatypes.TData(ipath, [str(ipath)], [*opts, *sopts], expected)
with warnings.catch_warnings():
warnings.simplefilter("ignore")
run_main(tdata, tmp_path)
run_main(tdata, tmp_path)
2 changes: 1 addition & 1 deletion tests/cli/test_schema_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ def test_cli(
tdata = datatypes.TData(ipath, [str(ipath)], opts, expected)
with warnings.catch_warnings():
warnings.simplefilter("ignore")
run_main(tdata, tmp_path)
run_main(tdata, tmp_path)
2 changes: 1 addition & 1 deletion tests/cli/test_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ def test_cli(
) -> None:
expected = datatypes.Expected(**exp)
tdata = datatypes.TData(ipath, [], opts, expected)
run_main(tdata, tmp_path)
run_main(tdata, tmp_path)
2 changes: 1 addition & 1 deletion tests/cli/test_single_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ def test_cli(
ipath, [str(ipath)], opts, expected,
outname=oname, ref=ref, oo_opts=oopts
)
run_main(tdata, tmp_path)
run_main(tdata, tmp_path)
2 changes: 1 addition & 1 deletion tests/cli/test_single_input_to_yaml_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ def test_cli(
ipath, [str(ipath)], opts, expected,
outname=oname, ref=ref, oo_opts=oopts
)
run_main(tdata, tmp_path)
run_main(tdata, tmp_path)
2 changes: 1 addition & 1 deletion tests/cli/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ def test_cli(
tdata = datatypes.TData(
ipath, [str(ipath)], opts, expected, outname=oname, ref=ref
)
run_main(tdata, tmp_path)
run_main(tdata, tmp_path)

0 comments on commit ef7eb8f

Please sign in to comment.