-
Notifications
You must be signed in to change notification settings - Fork 124
chore: bump pre-commit versions, plus small fixes #1643
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
chore: bump pre-commit versions, plus small fixes #1643
Conversation
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.
I went commit by commit. Looks good. The accidental 'bar--' 'FOO' concatenation was interesting in that the tests work either way, which is surprising at first. Left a suggestion for perhaps clearer test cases, but not a blocker.
Happy with this. I'm not quite sure though -- why aren't these things caught in CI by the ruff checks there? |
I think it's because this jumps to using the latest |
@@ -361,7 +361,7 @@ def _on_cluster_relation_changed(self, event: ops.EventBase): | |||
harness.set_leader(False) | |||
harness.update_relation_data(rel_id, 'test-app', {'k': 'v3'}) | |||
assert backend.relation_get(rel_id, 'test-app', is_app=True) == {'k': 'v3'} | |||
assert len(harness.charm.observed_events), 1 | |||
assert len(harness.charm.observed_events) == 1 |
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.
ouch!
Possibly simplest to review commit by commit.
This bumps the versions of the pre-commit tools.
A few small issues are also fixed (this is somewhat a subset of #1474, skipping all the docs and controversial changes).
" "
breaks).