Skip to content

Conversation

nathanjmcdougall
Copy link
Contributor

I have been getting ResourceWarnings for some calls to Version.from_files via board.pin_upload. I think it's due to un-closed file managers. In this PR I just enable a Ruff rule to detect this situation, and refactor to comply with the rule.

https://docs.astral.sh/ruff/rules/open-file-with-context-handler/

@isabelizimm
Copy link
Collaborator

Ah, it looks like I may need to switch to a different S3 bucket. This is looking good, I'll sort out the permissions problems!

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