-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Integrations code sanitization #21195
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
Conversation
UpdateAdded tests to wazuh/integrations/tests/test_maltiverse.py Lines 254 to 342 in 3009a61
Refactored already existing tests for wazuh/integrations/tests/test_virustotal.py Lines 274 to 306 in 3009a61
Results
|
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 !
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.
GJ. However, after reviewing how this new format actually looks, I think we should add this rule to the .ruff.toml
file (as Nico mentioned, do not include the file here yet):
We are following the numpy docstring format and it always contain a short summary on the first line as shown here:
Update these files to comply with this additional requirement please.
integrations/shuffle.py
Outdated
|
||
Returns | ||
------- | ||
{}: any |
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.
{}: any | |
dict: any |
@@ -5,8 +5,7 @@ | |||
# License (version 2) as published by the FSF - Free Software | |||
# Foundation. | |||
|
|||
""" | |||
What is Maltiverse? | |||
"""What is Maltiverse? |
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.
This module docstring looks slightly strange when applying D212 rule since the first line in this case is not a summary but a title.
Merging since the failing checks are unrelated to these changes. |
Nico is out-of-office so Edu approved the PR in the meantime.
Description
Code sanitization for the
/integrations
folder.