-
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-5324] Increase linting rules #649
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #649 +/- ##
==========================================
+ Coverage 71.23% 71.46% +0.22%
==========================================
Files 12 12
Lines 3091 3073 -18
Branches 471 461 -10
==========================================
- Hits 2202 2196 -6
+ Misses 777 767 -10
+ Partials 112 110 -2 ☔ View full report in Codecov by Sentry. |
@@ -100,13 +100,13 @@ target-version = ["py38"] | |||
[tool.ruff] | |||
# preview and explicit preview are enabled for CPY001 | |||
preview = true | |||
target-version = "py38" | |||
target-version = "py310" |
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.
No libs or focal, so it is safe.
PATRONI_TIMEOUT = 10 | ||
|
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.
Bandit rules want timeouts for HTTP calls.
# File shouldn't close | ||
stdout=open(LOG_FILE_PATH, "a"), # noqa: SIM115 |
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 set the output in the running instance instead or switch to a proper service.
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.
LGTM! I liked the HTTP calls timeout enforcement.
Add more linting rules and change and suppress the reported issues. Added rules are: