Skip to content

Commit 4e3d953

Browse files
mmhwwolyslager
authored andcommitted
[pre-commit ruff] Align the entire repo with ruff demisto#3 (demisto#29762)
* [pre-commit ruff] Align the entire repo with ruff demisto#3 * Add RN * Update the RN * Update the docker image
1 parent b531677 commit 4e3d953

File tree

14 files changed

+68
-62
lines changed

14 files changed

+68
-62
lines changed

Packs/CyberArkPAS/Integrations/CyberArkPAS/test_data/context.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,6 @@
575575
"Alert": False,
576576
"ClientID": "PVWA",
577577
"Date": 1594838456,
578-
"Date": 1594838456,
579578
"MoreInfo": "",
580579
"Reason": "",
581580
"User": "Administrator"

Packs/EDL/Integrations/EDL/EDL_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,7 @@ def test_initialize_edl_context():
634634
'url_truncate': False,
635635
'UpdateEDL': True,
636636
'maximum_cidr_size': 8,
637-
'no_wildcard_tld': True,
638-
'maximum_cidr_size': 8
637+
'no_wildcard_tld': True
639638
}
640639

641640

Packs/ExodusIntelligence/Integrations/ExodusVulnerabilityEnrichment/ExodusVulnerabilityEnrichment_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ def test_extract_data(self):
264264
CLEAN_DATA = {
265265
"xicve": "CVE-2021-28482",
266266
"xiidentifier": "XI-00053139",
267-
"xiidentifier": "XI-00053139",
268267
"xiattackvector": "NETWORK",
269268
"xicvss": 8.8,
270269
"xidescription": "Microsoft Exchange Server Remote Code Execution.",

Packs/FortinetFortiwebVM/Integrations/FortinetFortiwebVM/FortinetFortiwebVM.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8219,7 +8219,6 @@ def build_server_pool_rule(
82198219
"health": health_check,
82208220
"health-check-inherit": health_check_inherit,
82218221
"hlck-domain": health_check_domain,
8222-
"weight": weight,
82238222
"http2": http2,
82248223
"ssl": enable_ssl,
82258224
"client-certificate": client_certificate_file,

Packs/FortinetFortiwebVM/Integrations/FortinetFortiwebVM/FortinetFortiwebVM.yml

Lines changed: 41 additions & 41 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### Fortiweb VM
5+
6+
Updated the Docker image to: *demisto/python3:3.10.13.74666*.

Packs/FortinetFortiwebVM/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Fortinet Fortiweb VM",
33
"description": "Fortiweb VM integration allows to manage WAF policies and block cookies, URLs, and hostnames.",
44
"support": "xsoar",
5-
"currentVersion": "2.0.3",
5+
"currentVersion": "2.0.4",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

Packs/SysAid/Integrations/SysAid/test_data/input_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
service_record_expected_response_output = [
140140
{'alertID': 'green', 'id': '25', 'impact': 'Low', 'insert_time': '03/07/2022 08:56:35 AM', 'sr_type': 'Incident',
141141
'status': 'New', 'title': 'Cannot access email - Test ', 'update_time': '03/15/2022 04:53:20 AM',
142-
'canArchive': True, 'canDelete': True, 'canUpdate': True, 'hasChildren': False, 'id': '25', 'info': [
142+
'canArchive': True, 'canDelete': True, 'canUpdate': True, 'hasChildren': False, 'info': [
143143
{'key': 'impact', 'keyCaption': 'Impact', 'value': 4, 'valueCaption': 'Low', 'valueClass': ''},
144144
{'key': 'alertID', 'keyCaption': 'Alert', 'value': 25, 'valueCaption': 'green', 'valueClass': ''},
145145
{'key': 'status', 'keyCaption': 'Status', 'value': 1, 'valueCaption': 'New', 'valueClass': 0},
@@ -152,7 +152,7 @@
152152
{'key': 'sr_type', 'keyCaption': 'Service Record Type', 'value': 1, 'valueCaption': 'Incident', 'valueClass': ''}]},
153153
{'description': 'I test this', 'id': '28', 'sr_type': 'Incident', 'status': 'New',
154154
'title': 'Cannot connect to a Wi-Fi network', 'update_time': '03/07/2022 09:08:01 AM',
155-
'canArchive': True, 'canDelete': True, 'canUpdate': True, 'hasChildren': False, 'id': '28', 'info': [
155+
'canArchive': True, 'canDelete': True, 'canUpdate': True, 'hasChildren': False, 'info': [
156156
{'key': 'status', 'keyCaption': 'Status', 'value': 1, 'valueCaption': 'New', 'valueClass': 0},
157157
{'key': 'description', 'keyCaption': 'Description', 'value': 'I test this', 'valueCaption': 'I test this',
158158
'valueClass': ''},

Packs/Uptycs/Integrations/Uptycs/Uptycs_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,6 @@ def test_uptycs_get_asset_groups(mocker, requests_mock):
14281428
"updatedAt": "2018-09-24T17:24:45.604Z",
14291429
"id": "106eef5e-c3a6-44eb-bb3d-1a2087cded3d",
14301430
"createdAt": "2018-09-24T17:24:45.604Z",
1431-
"updatedAt": "2018-09-24T17:24:45.604Z",
14321431
"objectType": "ASSET"
14331432
}
14341433
]

Packs/epo/Integrations/epoV2/epoV2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,6 @@ def epo_command_command(client: Client, args: Dict[str, Any]) -> CommandResults:
10101010
if resp_type != 'json':
10111011
response_json = raw_response # type: ignore
10121012

1013-
header_list: List[Any]
10141013
if 'headers' in args:
10151014
headers_list = list(args['headers'].split(','))
10161015
md = tableToMarkdown(f'ePO command *{args["command"]}* results:', response_json, headers=headers_list)

Packs/epo/Integrations/epoV2/epoV2.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sectionOrder:
77
name: McAfee ePO v2
88
display: McAfee ePO v2
99
category: Endpoint
10-
description: McAfee ePolicy Orchestrator
10+
description: McAfee ePolicy Orchestrator.
1111
configuration:
1212
- display: McAfee ePO Server URI
1313
name: address
@@ -64,7 +64,7 @@ script:
6464
arguments: []
6565
outputs:
6666
- contextPath: McAfee.ePO.epoDAT
67-
description: Current installed McAfee DAT file in the ePO repository
67+
description: Current installed McAfee DAT file in the ePO repository.
6868
type: number
6969
description: Checks the existing DAT file version in the ePO repository.
7070
- name: epo-command
@@ -501,13 +501,13 @@ script:
501501
required: true
502502
description: Name of the table.
503503
- name: select
504-
description: 'The columns to return, in SQUID syntax. Example: "(select EPOEvents.AutoID EPOEvents.DetectedUTC EPOEvents.ReceivedUTC)"'
504+
description: 'The columns to return, in SQUID syntax. Example: "(select EPOEvents.AutoID EPOEvents.DetectedUTC EPOEvents.ReceivedUTC)".'
505505
- name: where
506-
description: 'Filter results, in SQUID syntax. Example: "(where ( eq ( OrionTaskLogTask .UserName "ga" )))"'
506+
description: 'Filter results, in SQUID syntax. Example: "(where ( eq ( OrionTaskLogTask .UserName "ga" )))".'
507507
- name: order
508-
description: 'Order in which to return the results, in SQUID syntax. Example: "(order (asc OrionTaskLogTask.StartDate) )")'
508+
description: 'Order in which to return the results, in SQUID syntax. Example: "(order (asc OrionTaskLogTask.StartDate) )").'
509509
- name: group
510-
description: 'Group the results, in SQUID Syntax. Example: "(group EPOBranchNode.NodeName)"'
510+
description: 'Group the results, in SQUID Syntax. Example: "(group EPOBranchNode.NodeName)".'
511511
- name: joinTables
512512
description: Perform join, in SQUID syntax.
513513
- name: query_name
@@ -587,7 +587,7 @@ script:
587587
- "true"
588588
- "false"
589589
description: If true, resets the inheritance for the specified policy on the given group. Default is false.
590-
description: Assigns a policy to the specified group or resets the group's inheritance for the specified policy
590+
description: Assigns a policy to the specified group or resets the group's inheritance for the specified policy.
591591
- name: epo-assign-policy-to-system
592592
arguments:
593593
- name: names
@@ -682,7 +682,7 @@ script:
682682
arguments:
683683
- name: id
684684
required: true
685-
description: The ID of the issue to delete
685+
description: The ID of the issue to delete.
686686
description: Delete an issue.
687687
- name: epo-create-issue
688688
arguments:
@@ -815,7 +815,7 @@ script:
815815
- name: properties
816816
description: Properties of the issue.
817817
description: Update an issue.
818-
dockerimage: demisto/python3:3.10.13.72123
818+
dockerimage: demisto/python3:3.10.13.74666
819819
runonce: false
820820
script: '-'
821821
subtype: python3

Packs/epo/ReleaseNotes/2_0_27.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### McAfee ePO v2
5+
6+
Updated the Docker image to: *demisto/python3:3.10.13.74666*.

Packs/epo/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "McAfee ePO",
33
"description": "McAfee ePolicy Orchestrator",
44
"support": "xsoar",
5-
"currentVersion": "2.0.26",
5+
"currentVersion": "2.0.27",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

Utils/tests/download_packs_and_docker_images_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from unittest.mock import patch
22

3-
from ..download_packs_and_docker_images import create_content_item_id_set, get_docker_images_with_tag, get_pack_names
3+
from Utils.download_packs_and_docker_images import create_content_item_id_set, get_docker_images_with_tag, get_pack_names
44

55
MOCK_ID_SET = {
66
'integrations':

0 commit comments

Comments
 (0)