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

Run ruff on entire project #986

Merged
merged 2 commits into from
Jul 16, 2024
Merged

Run ruff on entire project #986

merged 2 commits into from
Jul 16, 2024

Conversation

collindutter
Copy link
Member

@collindutter collindutter commented Jul 15, 2024

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/

@collindutter collindutter force-pushed the feature/ruff-tests branch 2 times, most recently from c9379fe to 2225ca1 Compare July 15, 2024 22:09
Copy link

codecov bot commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@dylanholmes dylanholmes left a 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

docs/gen_ref_pages.py Show resolved Hide resolved
Comment on lines 253 to 256
# 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
Copy link
Contributor

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}
Copy link
Contributor

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

@collindutter collindutter merged commit 974a3cb into dev Jul 16, 2024
12 checks passed
@collindutter collindutter deleted the feature/ruff-tests branch July 16, 2024 18:19
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.

2 participants