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

maturin new --mixed generates a Python file with a tab #1429

Closed
2 tasks
itamarst opened this issue Jan 27, 2023 · 0 comments
Closed
2 tasks

maturin new --mixed generates a Python file with a tab #1429

itamarst opened this issue Jan 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@itamarst
Copy link
Contributor

Bug Description

Python standard is 4 spaces for indentation, not a tab:

$ maturin new --mixed yourpackage
$ cat yourpackage/python/yourproject/__init__.py
from .yourproject import *


__doc__ = yourproject.__doc__
if hasattr(yourproject, "__all__"):
	__all__ = yourproject.__all__   # <--- TAB

Your maturin version (maturin --version)

0.14.10

Your Python version (python -V)

3.9.16

Your pip version (pip -V)

22.0.4

What bindings you're using

None

Does cargo build work?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

maturin new --mixed yourpackage, look at __init__.py

@itamarst itamarst added the bug Something isn't working label Jan 27, 2023
messense pushed a commit to messense/maturin that referenced this issue Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant