Skip to content

Commit

Permalink
[pre-commit ruff] Align the entire repo with ruff #3 (demisto#29762)
Browse files Browse the repository at this point in the history
* [pre-commit ruff] Align the entire repo with ruff #3

* Add RN

* Update the RN

* Update the docker image
  • Loading branch information
mmhw authored Sep 27, 2023
1 parent 37d7c4c commit ca0cd29
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@
"Alert": False,
"ClientID": "PVWA",
"Date": 1594838456,
"Date": 1594838456,
"MoreInfo": "",
"Reason": "",
"User": "Administrator"
Expand Down
3 changes: 1 addition & 2 deletions Packs/EDL/Integrations/EDL/EDL_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,7 @@ def test_initialize_edl_context():
'url_truncate': False,
'UpdateEDL': True,
'maximum_cidr_size': 8,
'no_wildcard_tld': True,
'maximum_cidr_size': 8
'no_wildcard_tld': True
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ def test_extract_data(self):
CLEAN_DATA = {
"xicve": "CVE-2021-28482",
"xiidentifier": "XI-00053139",
"xiidentifier": "XI-00053139",
"xiattackvector": "NETWORK",
"xicvss": 8.8,
"xidescription": "Microsoft Exchange Server Remote Code Execution.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8219,7 +8219,6 @@ def build_server_pool_rule(
"health": health_check,
"health-check-inherit": health_check_inherit,
"hlck-domain": health_check_domain,
"weight": weight,
"http2": http2,
"ssl": enable_ssl,
"client-certificate": client_certificate_file,
Expand Down

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Packs/FortinetFortiwebVM/ReleaseNotes/2_0_4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Fortiweb VM

Updated the Docker image to: *demisto/python3:3.10.13.74666*.
2 changes: 1 addition & 1 deletion Packs/FortinetFortiwebVM/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Fortinet Fortiweb VM",
"description": "Fortiweb VM integration allows to manage WAF policies and block cookies, URLs, and hostnames.",
"support": "xsoar",
"currentVersion": "2.0.3",
"currentVersion": "2.0.4",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
4 changes: 2 additions & 2 deletions Packs/SysAid/Integrations/SysAid/test_data/input_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
service_record_expected_response_output = [
{'alertID': 'green', 'id': '25', 'impact': 'Low', 'insert_time': '03/07/2022 08:56:35 AM', 'sr_type': 'Incident',
'status': 'New', 'title': 'Cannot access email - Test ', 'update_time': '03/15/2022 04:53:20 AM',
'canArchive': True, 'canDelete': True, 'canUpdate': True, 'hasChildren': False, 'id': '25', 'info': [
'canArchive': True, 'canDelete': True, 'canUpdate': True, 'hasChildren': False, 'info': [
{'key': 'impact', 'keyCaption': 'Impact', 'value': 4, 'valueCaption': 'Low', 'valueClass': ''},
{'key': 'alertID', 'keyCaption': 'Alert', 'value': 25, 'valueCaption': 'green', 'valueClass': ''},
{'key': 'status', 'keyCaption': 'Status', 'value': 1, 'valueCaption': 'New', 'valueClass': 0},
Expand All @@ -152,7 +152,7 @@
{'key': 'sr_type', 'keyCaption': 'Service Record Type', 'value': 1, 'valueCaption': 'Incident', 'valueClass': ''}]},
{'description': 'I test this', 'id': '28', 'sr_type': 'Incident', 'status': 'New',
'title': 'Cannot connect to a Wi-Fi network', 'update_time': '03/07/2022 09:08:01 AM',
'canArchive': True, 'canDelete': True, 'canUpdate': True, 'hasChildren': False, 'id': '28', 'info': [
'canArchive': True, 'canDelete': True, 'canUpdate': True, 'hasChildren': False, 'info': [
{'key': 'status', 'keyCaption': 'Status', 'value': 1, 'valueCaption': 'New', 'valueClass': 0},
{'key': 'description', 'keyCaption': 'Description', 'value': 'I test this', 'valueCaption': 'I test this',
'valueClass': ''},
Expand Down
1 change: 0 additions & 1 deletion Packs/Uptycs/Integrations/Uptycs/Uptycs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,6 @@ def test_uptycs_get_asset_groups(mocker, requests_mock):
"updatedAt": "2018-09-24T17:24:45.604Z",
"id": "106eef5e-c3a6-44eb-bb3d-1a2087cded3d",
"createdAt": "2018-09-24T17:24:45.604Z",
"updatedAt": "2018-09-24T17:24:45.604Z",
"objectType": "ASSET"
}
]
Expand Down
1 change: 0 additions & 1 deletion Packs/epo/Integrations/epoV2/epoV2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,6 @@ def epo_command_command(client: Client, args: Dict[str, Any]) -> CommandResults:
if resp_type != 'json':
response_json = raw_response # type: ignore

header_list: List[Any]
if 'headers' in args:
headers_list = list(args['headers'].split(','))
md = tableToMarkdown(f'ePO command *{args["command"]}* results:', response_json, headers=headers_list)
Expand Down
18 changes: 9 additions & 9 deletions Packs/epo/Integrations/epoV2/epoV2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sectionOrder:
name: McAfee ePO v2
display: McAfee ePO v2
category: Endpoint
description: McAfee ePolicy Orchestrator
description: McAfee ePolicy Orchestrator.
configuration:
- display: McAfee ePO Server URI
name: address
Expand Down Expand Up @@ -64,7 +64,7 @@ script:
arguments: []
outputs:
- contextPath: McAfee.ePO.epoDAT
description: Current installed McAfee DAT file in the ePO repository
description: Current installed McAfee DAT file in the ePO repository.
type: number
description: Checks the existing DAT file version in the ePO repository.
- name: epo-command
Expand Down Expand Up @@ -501,13 +501,13 @@ script:
required: true
description: Name of the table.
- name: select
description: 'The columns to return, in SQUID syntax. Example: "(select EPOEvents.AutoID EPOEvents.DetectedUTC EPOEvents.ReceivedUTC)"'
description: 'The columns to return, in SQUID syntax. Example: "(select EPOEvents.AutoID EPOEvents.DetectedUTC EPOEvents.ReceivedUTC)".'
- name: where
description: 'Filter results, in SQUID syntax. Example: "(where ( eq ( OrionTaskLogTask .UserName "ga" )))"'
description: 'Filter results, in SQUID syntax. Example: "(where ( eq ( OrionTaskLogTask .UserName "ga" )))".'
- name: order
description: 'Order in which to return the results, in SQUID syntax. Example: "(order (asc OrionTaskLogTask.StartDate) )")'
description: 'Order in which to return the results, in SQUID syntax. Example: "(order (asc OrionTaskLogTask.StartDate) )").'
- name: group
description: 'Group the results, in SQUID Syntax. Example: "(group EPOBranchNode.NodeName)"'
description: 'Group the results, in SQUID Syntax. Example: "(group EPOBranchNode.NodeName)".'
- name: joinTables
description: Perform join, in SQUID syntax.
- name: query_name
Expand Down Expand Up @@ -587,7 +587,7 @@ script:
- "true"
- "false"
description: If true, resets the inheritance for the specified policy on the given group. Default is false.
description: Assigns a policy to the specified group or resets the group's inheritance for the specified policy
description: Assigns a policy to the specified group or resets the group's inheritance for the specified policy.
- name: epo-assign-policy-to-system
arguments:
- name: names
Expand Down Expand Up @@ -682,7 +682,7 @@ script:
arguments:
- name: id
required: true
description: The ID of the issue to delete
description: The ID of the issue to delete.
description: Delete an issue.
- name: epo-create-issue
arguments:
Expand Down Expand Up @@ -815,7 +815,7 @@ script:
- name: properties
description: Properties of the issue.
description: Update an issue.
dockerimage: demisto/python3:3.10.13.72123
dockerimage: demisto/python3:3.10.13.74666
runonce: false
script: '-'
subtype: python3
Expand Down
6 changes: 6 additions & 0 deletions Packs/epo/ReleaseNotes/2_0_27.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### McAfee ePO v2

Updated the Docker image to: *demisto/python3:3.10.13.74666*.
2 changes: 1 addition & 1 deletion Packs/epo/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "McAfee ePO",
"description": "McAfee ePolicy Orchestrator",
"support": "xsoar",
"currentVersion": "2.0.26",
"currentVersion": "2.0.27",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
2 changes: 1 addition & 1 deletion Utils/tests/download_packs_and_docker_images_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest.mock import patch

from ..download_packs_and_docker_images import create_content_item_id_set, get_docker_images_with_tag, get_pack_names
from Utils.download_packs_and_docker_images import create_content_item_id_set, get_docker_images_with_tag, get_pack_names

MOCK_ID_SET = {
'integrations':
Expand Down

0 comments on commit ca0cd29

Please sign in to comment.