-
Notifications
You must be signed in to change notification settings - Fork 20
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
[DPE-3684] Factor out minor changes from the raft reinit PR #681
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #681 +/- ##
==========================================
+ Coverage 71.49% 71.79% +0.30%
==========================================
Files 13 13
Lines 3199 3216 +17
Branches 476 478 +2
==========================================
+ Hits 2287 2309 +22
+ Misses 797 791 -6
- Partials 115 116 +1 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
@@ -18,6 +18,8 @@ pydantic = "^1.10.18" | |||
poetry-core = "^1.9.1" | |||
pyOpenSSL = "^24.2.1" | |||
jinja2 = "^3.1.4" | |||
pysyncobj = "^0.3.13" |
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.
We should most probably bump in the snap as well, though changes appear minor.
def _on_peer_relation_changed(self, event: HookEvent): # noqa: C901 | ||
"""Reconfigure cluster members when something changes.""" |
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.
Splitting over McCabe.
if ip: | ||
return str(ip) | ||
return None |
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.
Should fix potential "None" string result.
@@ -106,7 +108,7 @@ line-length = 99 | |||
|
|||
[tool.ruff.lint] | |||
explicit-preview-rules = true | |||
select = ["A", "E", "W", "F", "C", "N", "D", "I001", "B", "CPY", "RUF", "S", "SIM", "UP", "TCH"] | |||
select = ["A", "E", "W", "F", "C", "N", "D", "I001", "B", "CPY", "RUF", "S", "SIM", "UP", "TC"] |
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.
Renamed in ruff 8.0
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.
Great!
Factored out minor changes out of #611 to minimise the size of the PR to be kept in sync with main.