We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hello.py
ruff format
uv version 0.4.0 creates a hello.py file by default when running
$ uv init my_project
The contents of hello.py are
$ cat hello.py def main(): print("Hello from my-project!") if __name__ == "__main__": main()
Which is completely reasonable. But I noticed that this does not pass ruff format.
$ uv add ruff $ uv run ruff format --diff . --- hello.py +++ hello.py @@ -1,5 +1,6 @@ def main(): print("Hello from my-project!") + if __name__ == "__main__": main() 1 file would be reformatted
Maybe you want hello.py to be ruff approved out the box? It's a minor thing though.
The text was updated successfully, but these errors were encountered:
Lol, thank you. Yes. (PR welcome or we'll fix soon.)
Sorry, something went wrong.
Thanks :) the problem with writing Python manually in a Rust string...
Update default hello.py to pass ruff format (#6811)
f956ab8
Closes #6808
Successfully merging a pull request may close this issue.
uv version 0.4.0 creates a
hello.py
file by default when runningThe contents of
hello.py
areWhich is completely reasonable. But I noticed that this does not pass
ruff format
.Maybe you want
hello.py
to be ruff approved out the box? It's a minor thing though.The text was updated successfully, but these errors were encountered: