Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/setting up ruff #5

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

RichieCahill
Copy link

First i want to say that this code is cool.

Im planing to use it and want to make it easier to maintain.
this consist of 2 major changes
1 adding ruff for linting and formatting
2 moving the demo code to its own file
there are 2 code changes that i will call out with comments

Comment on lines -71 to -75
try:
tree = etree.parse(input_svg_file, parser)
except etree.XMLSyntaxError as e:
print(f"Error parsing SVG: {e}")
return
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this try except because it can make it harder to debug this code

Comment on lines -67 to -68
print(f"Error: {input_svg_file} does not exist.")
return
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I replaced this with a raise FileNotFoundError

@Dicklesworthstone
Copy link
Owner

Hey sorry for the delay in responding, I've been super busy. Will go through this more thoroughly when I have a chance. It's a bit of a pain to prepare everything again and resubmit to pip and also test everything, so not sure these changes are significant enough to justify doing that just yet. But appreciate the interest in the project and will try to integrate everything when I have more time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants