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

Refactoring and suggestions #334

Merged
merged 19 commits into from
Jun 23, 2023
Merged

Refactoring and suggestions #334

merged 19 commits into from
Jun 23, 2023

Conversation

k1lgor
Copy link
Contributor

@k1lgor k1lgor commented Jun 22, 2023

  • 0310f13 - update CI only when test python files, otherwise is useless to test when markdown or any other files are committed. Removed matrix for single python version
  • fix indentation on pre-commit-config.yaml files
  • add auto-commit in pre-commit.yml
  • refactor try/except block when the exception is set to pass in benchmark.py

@k1lgor
Copy link
Contributor Author

k1lgor commented Jun 22, 2023

@patillacode @AntonOsika

Copy link
Collaborator

@patillacode patillacode left a comment

Choose a reason for hiding this comment

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

Thanks @k1lgor for your contribution.

Overall looks good! Thanks!

Although, I left a couple of comments. Let me know your thoughts.

@k1lgor k1lgor requested a review from patillacode June 23, 2023 05:49
@patillacode patillacode merged commit 1b2831a into AntonOsika:main Jun 23, 2023
@patillacode
Copy link
Collaborator

Thanks @k1lgor

@@ -59,7 +60,7 @@ def main(
print(f.read())
print()

try:
with contextlib.suppress(KeyboardInterrupt):
Copy link
Owner

Choose a reason for hiding this comment

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

This is not what we want!

We want keyboard interrupt to kill the process.

Could you push a PR to address? @k1lgor

Copy link
Collaborator

Choose a reason for hiding this comment

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

This might be my bad @AntonOsika

the previous code wasn't killing the process AFAIU
I mean, we didn't change the behaviour, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just create a PR #374 with the revert @AntonOsika @patillacode

Copy link
Owner

Choose a reason for hiding this comment

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

My bad actually – it's useful to have this!

I created an issue #394 to follow up on improving further

Copy link
Collaborator

Choose a reason for hiding this comment

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

I was not crazy then 😅

70ziko pushed a commit to 70ziko/gpt-engineer that referenced this pull request Oct 25, 2023
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.

3 participants