mirror of https://github.com/astral-sh/uv
Update default `hello.py` to pass `ruff format` (#6811)
Closes https://github.com/astral-sh/uv/issues/6808
This commit is contained in:
parent
3be4fe59d7
commit
f956ab8fae
|
|
@ -368,6 +368,7 @@ fn init_application(
|
|||
def main():
|
||||
print("Hello from {name}!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
"#},
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@ fn init_application() -> Result<()> {
|
|||
def main():
|
||||
print("Hello from foo!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
"###
|
||||
|
|
@ -222,6 +223,7 @@ fn init_application_other_python_exists() -> Result<()> {
|
|||
def main():
|
||||
print("Hello from foo!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
"###
|
||||
|
|
@ -561,6 +563,7 @@ fn init_application_current_dir() -> Result<()> {
|
|||
def main():
|
||||
print("Hello from foo!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
"###
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@ The created script defines a `main` function with some standard boilerplate:
|
|||
def main():
|
||||
print("Hello from example-app!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue