-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fix flake8 check errors: unused imports, tab warning #68
Conversation
Hi @tdadela, many thanks for your contribution and your interest in Manim Slides!
Do you mean a separate Python file, or something else? I thank that can be a good idea. Maybe we should replace all tabs with spaces, and still allow for this warning to occur? |
I've moved the template to a separate file. |
Thanks for the update @tdadela! However, as I was afraid of, you cannot include simply include external files (such as the HTML template) and expect them to be available when installed with pip. If you were to test ➜ Desktop manim-slides convert ConvertExample slides.html --open
Traceback (most recent call last):
File "/home/eertmans/.local/bin/manim-slides", line 8, in <module>
sys.exit(cli())
File "/home/eertmans/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/eertmans/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/eertmans/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/eertmans/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/eertmans/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/eertmans/.local/lib/python3.10/site-packages/manim_slides/convert.py", line 202, in convert
converter.convert_to(dest)
File "/home/eertmans/.local/lib/python3.10/site-packages/manim_slides/convert.py", line 124, in convert_to
revealjs_template = self.load_template()
File "/home/eertmans/.local/lib/python3.10/site-packages/manim_slides/convert.py", line 103, in load_template
with open(REVEALJS_TEMPLATE_PATH, "r") as content_file:
FileNotFoundError: [Errno 2] No such file or directory: 'manim_slides/revealjs_template.html The solution might be to set up data files, see this blog post. Do you want to take care or this? Again, many thanks for your time and for your enthusiasm ;D |
Yes |
Hi @tdadela, sorry to finally take on this one, but I wanted to move on next features for Manim Slides, and I prefer not to stall issues / PRs for too long ;-) I hope you don't mind! |
for more information, see https://pre-commit.ci
Description
Remove unused imports.
Use "noqa W191" to hide W191 for the REVEALJS_TEMPLATE string.
Maybe it's good idea to move this template to separate file?
I want to say congratulations – great project!