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

Remove irrelevant noqa comments #905

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

endolith
Copy link
Contributor

@endolith endolith commented Apr 12, 2023

Background

There is a noqa comment on e even though e is used and will not trigger QA. Other lines have noqa when it would be better to just not assign to a variable in the first place.

Changes

Removed the unused underscore variable assignments and unnecessary comments

Documentation

I removed erroneous comments

Test Plan

I tested it a bit, but I can't conceive of any negative effects. Removing assignment to an unused variable does nothing. Removing an erroneous comment does nothing.

PR Quality Checklist

  • My pull request is atomic and focuses on a single change.
  • I have thouroughly tested my changes with multiple different prompts.
  • I have considered potential risks and mitigations for my changes.
  • I have documented my changes clearly and comprehensively.
  • I have not snuck in any "extra" small tweaks changes

@endolith endolith force-pushed the noqa branch 4 times, most recently from 53dd7c8 to 36039d2 Compare April 13, 2023 13:43
nponeccop
nponeccop previously approved these changes Apr 13, 2023
@nponeccop nponeccop mentioned this pull request Apr 14, 2023
1 task
@nponeccop
Copy link
Contributor

@endolith There are conflicts now

@endolith
Copy link
Contributor Author

Made irrelevant by 1073954, but found another one and replaced this branch with that.

@endolith endolith changed the title Remove some bogus noqa F841 comments Remove irrelevant noqa comments Apr 16, 2023
nponeccop
nponeccop previously approved these changes Apr 16, 2023
@nponeccop nponeccop added the B6 label Apr 16, 2023
E722 is "Do not use bare except, specify exception instead" but
except json.JSONDecodeError
is not a bare except
@richbeales richbeales merged commit be712fc into Significant-Gravitas:master Apr 17, 2023
@endolith endolith deleted the noqa branch April 17, 2023 11:47
SquareandCompass pushed a commit to SquareandCompass/Auto-GPT that referenced this pull request Oct 21, 2023
* add cost budget; move loc of make_dir

* support openai completion

* install pytest in workflow

* skip openai test

* test openai

* path for docs rebuild

* install datasets

* signal

* notebook

* notebook in workflow

* optional arguments and special params

* key -> k

* improve readability

* assumption

* optimize for model selection

* larger range of max_tokens

* notebook

* python package workflow

* skip on win
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants