Skip to content

Commit

Permalink
Black formatting pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwright committed Dec 5, 2023
1 parent eb72128 commit fa28edf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/cq_cli/cqcodecs/cq_codec_stl.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ def convert(build_result, output_file=None, error_file=None, output_opts=None):
result = result.val()

# Put the STL output into the temp file
result.exportStl(
temp_file, linearDeflection, angularDeflection, True
)
result.exportStl(temp_file, linearDeflection, angularDeflection, True)

# Read the STL output back in
with open(temp_file, "r") as file:
Expand Down
5 changes: 1 addition & 4 deletions src/cq_cli/cqcodecs/cq_codec_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ def convert(build_result, output_file=None, error_file=None, output_opts=None):

# Put the STEP output into the temp file
exporters.export(
result,
temp_file,
exporters.ExportTypes.SVG,
opt=output_opts,
result, temp_file, exporters.ExportTypes.SVG, opt=output_opts,
)

# Read the STEP output back in
Expand Down
2 changes: 1 addition & 1 deletion tests/test_stl_codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ def test_stl_codec_with_assembly():
]
out, err, exitcode = helpers.cli_call(command)

assert out.decode().split("\n")[0].replace("\r", "") == "solid "
assert out.decode().split("\n")[0].replace("\r", "") == "solid "

0 comments on commit fa28edf

Please sign in to comment.