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

Fix SIM115 by using a context manager #8611

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Fix SIM115 by using a context manager #8611

merged 1 commit into from
Oct 21, 2024

Conversation

willbarton
Copy link
Member

@willbarton willbarton commented Oct 21, 2024

Ruff started throwing a SIM115 error:

cfgov/v1/tests/management/commands/test_publish_pages.py:33:14: SIM115 Use a context manager for opening files

This fixes that by using a context management.

Checklist

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)

Ruff started throwing a SIM115 error:

```
cfgov/v1/tests/management/commands/test_publish_pages.py:33:14: SIM115 Use a context manager for opening files
```

This fixes that by using a context management.
@willbarton willbarton requested a review from a team October 21, 2024 12:33
@willbarton willbarton added this pull request to the merge queue Oct 21, 2024
Merged via the queue into main with commit 9bf0093 Oct 21, 2024
12 checks passed
@willbarton willbarton deleted the fix/ruff branch October 21, 2024 12:47
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