Skip to content

Commit adfc974

Browse files
committed
Version Bump.
1 parent 5c2ce3b commit adfc974

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from setuptools import setup, find_packages
1+
from setuptools import setup
22

33

44
with open("README.md") as f:
55
readme = f.read()
66

77
setup(
88
name="vpype-gcode",
9-
version="0.2.0",
9+
version="0.3.0",
1010
description="vpype gcode plugin",
1111
long_description=readme,
1212
long_description_content_type="text/markdown",

vpype_gcode/gwrite.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Load the default config
77
vp.CONFIG_MANAGER.load_config_file(str(Path(__file__).parent / "bundled_configs.toml"))
88

9+
910
def invert_axis(
1011
document: vp.Document,
1112
invert_x: bool,
@@ -35,9 +36,9 @@ def invert_axis(
3536
lc.scale(-1 if invert_x else 1, -1 if invert_y else 1)
3637
lc.translate(origin[0], origin[1])
3738

38-
3939
return document
4040

41+
4142
@click.command()
4243
@click.argument('filename', type=click.Path(exists=False))
4344
@click.option(
@@ -97,7 +98,7 @@ def gwrite(document: vp.Document, filename: str, profile: str):
9798
scale = 1 / vp.convert_length(unit)
9899

99100
if invert_x or invert_y:
100-
document = invert_axis(document, invert_x, invert_y)
101+
document = invert_axis(document, invert_x, invert_y)
101102

102103
with open(filename, 'w') as f:
103104
if header is not None:

0 commit comments

Comments
 (0)