-
Notifications
You must be signed in to change notification settings - Fork 182
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
Run ruff on entire project #986
Conversation
c9379fe
to
2225ca1
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
e8c4e46
to
d71889c
Compare
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.
Just a couple of minor things
# loop over the files in the bucket and print them | ||
response = s3_client.list_objects_v2(Bucket=bucket) | ||
for obj in response.get("Contents", []): | ||
print(obj.get("Key")) | ||
for _obj in response.get("Contents", []): | ||
pass |
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.
Maybe just remove this whole section... no reason to loop if you don't print
@@ -32,8 +32,8 @@ def test_load_collection(self, create_source, loader): | |||
|
|||
assert len(collection) == len(resource_paths) | |||
|
|||
keys = {loader.to_key(source) for source in sources} | |||
for key in collection.keys(): | |||
{loader.to_key(source) for source in sources} |
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.
Result of this map comprehension isn't used
d71889c
to
3491a66
Compare
3491a66
to
2383542
Compare
Describe your changes
Run ruff on entire project instead of just
griptape
directory. Also adds flake8-pytest-style.Issue ticket number and link
NA
📚 Documentation preview 📚: https://griptape--986.org.readthedocs.build//986/