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

Fix for the firing bug #19

Merged
merged 3 commits into from
Jan 13, 2022
Merged

Conversation

HarshNarayanJha
Copy link
Contributor

@HarshNarayanJha HarshNarayanJha commented Jan 11, 2022

I have fixed the bug stated in issue #18 by just checking if the space key was held for long enough to stop firing that weird looking continuous bullets.

Fixes #18

@HarshNarayanJha HarshNarayanJha mentioned this pull request Jan 11, 2022
Copy link
Owner

@DiddiLeija DiddiLeija left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... I just ran the CI, and seems like black (the code formatter I'm using) is unhappy. To fix this, open your fork locally, in an environment with Nox installed, then run nox -s keep-codebase-clean. Then push the changes here.

If you prefer that I do the changes, tell me!

@DiddiLeija
Copy link
Owner

I also edited your first post to link this PR with the issue, so we can close it after merging.

Copy link
Owner

@DiddiLeija DiddiLeija left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tested locally. Indeed, the bug is now gone! 🎉

I can spot two things to make this PR ready:

  1. Remove the print, at line 165? On a Windows distribution, this won't be visible, but other distributions will fill up with unecessary information. You can still use print for testing purposes, but don't push them here.
  2. Fix the code formatting, see Fix for the firing bug #19 (review).

@HarshNarayanJha
Copy link
Contributor Author

  1. Remove the print, at line 165? On a Windows distribution, this won't be visible, but other distributions will fill up with unecessary information. You can still use print for testing purposes, but don't push them here.

Oh! Sorry, I forgot that one. Removed!

2. Fix the code formatting, see #19 (review).

I did it as you said, and here's the output:
image

But main.py wasn't changed. Is that OK?

@DiddiLeija
Copy link
Owner

Did you push the changes? On a Git local clone, run git add ., then run git commit --message "{Commit message}", and finally git push.

@HarshNarayanJha
Copy link
Contributor Author

I will push the changes after confirming this: #18 (comment)
Also, before committing and pushing, all that I wanted to know is that nox did nothing to main.py when I ran the command. Won't this will cause CI checks to fail here again?

@HarshNarayanJha
Copy link
Contributor Author

Pushed!

@DiddiLeija
Copy link
Owner

Also, before committing and pushing, all that I wanted to know is that nox did nothing to main.py when I ran the command. Won't this will cause CI checks to fail here again?

Hmm... It did, I don't know why. Did you run Nox in the same branch than the PR? Maybe that's the issue.

About the behavior changes, I will review them soon.

@HarshNarayanJha
Copy link
Contributor Author

Ok! ran just nox command and it ran both tests, and this time it did reformat main.py, which was only rearrangement of some brackets on multiple lines.
image

Hopefully this time checks will pass!
Pushed the changes!

@HarshNarayanJha
Copy link
Contributor Author

Hey! All checks passed @DiddiLeija!

Copy link
Owner

@DiddiLeija DiddiLeija left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @HarshNarayanJha! 🎉

@DiddiLeija DiddiLeija merged commit b1dad49 into DiddiLeija:main Jan 13, 2022
@HarshNarayanJha HarshNarayanJha deleted the fire-bugfix branch January 14, 2022 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fire Bug
2 participants