-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Setup Hello World exercise #3
Conversation
Thanks 🙂 Two things:
|
2e6504d
to
b509c97
Compare
b509c97
to
3678ed0
Compare
94ff2c8
to
3418bbe
Compare
f4ffc3b
to
428c323
Compare
.github/workflows/test.yml
Outdated
runs-on: <image-name> | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: exercism/gdscript-test-runner | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General practice for Exercism now is to pin actions to a particular commit SHA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to the SHA used by Crystal and Python tracks, thanks :)
@@ -0,0 +1,2 @@ | |||
func test_hello_world(solution_script): | |||
return ["Hello, World!", solution_script.hello()] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpick but the indent seems larger here than in hello_world.gd so one of them probably needs to be updated to match the other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I've missed this 👍 Since Godot editor uses tabs by default, I think we should use them too (consistently, in all files). I've already changed the files :)
Side note: I think that Godot will accept both types of indentation, as long as they are consistent within a file, but there is no need to confuse GDScript learners :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I think you just need to ping Erik to take a final look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be good to choose a formatter / linter if available to make sure everything is consistent between contributors and PRs. https://github.com/Scony/godot-gdscript-toolkit seems promising since it has both. There's a GitHub Action for static analysis, but we could also use the CI for checking if a PR is well-formatted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a new workflow with that toolkit. It does detect some errors (e.g. an unnecessary return
) but it doesn't detect things like mixed indent (tabs vs spaces). Nevertheless, I think it's a good idea to have the linter already configured, as it might get better in the future, and it already helps a bit. Thanks for this suggestion! ;)
af91056
to
d0bd7d2
Compare
@ErikSchierboom do you think this PR is ready, or should I add something? |
005898c
to
92a0683
Compare
|
I agree :) There is a discussion in another PR about either adding |
I've opened a PR to add |
If you (temporarily) remove the |
92a0683
to
606af19
Compare
606af19
to
ed02cdb
Compare
I've removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to merge! Congrats on the first exercise
This is still work in progress, please don't merge. I'll add the missing pieces one-by-one, then ask for a review.