Skip to content

Commit

Permalink
Remove mypy Global Ignores (#35643)
Browse files Browse the repository at this point in the history
* Remove mypy global ignores

* update docker images

* update docker images p2

* update rn

* update rn p2

* add rn to gcp iam

* Bump pack from version CommonScripts to 1.15.40.

* install missing my dep types-request

* update mispv3 docker image

add missing mypy deps

* revert mispv3 docker image

* Bump pack from version CommonScripts to 1.15.41.

* Bump pack from version Base to 1.34.32.

* add missing type hints

* Bump pack from version CommonScripts to 1.15.42.

* Bump pack from version Base to 1.34.33.

* revert precommit template

* Bump pack from version Base to 1.34.34.

* Bump pack from version CommonScripts to 1.15.43.

* Bump pack from version CommonScripts to 1.15.44.

* fix rn

* Bump pack from version CommonScripts to 1.15.45.

* Bump pack from version AzureDataExplorer to 1.3.2.

* Bump pack from version AzureDevOps to 1.4.2.

* Bump pack from version CommonScripts to 1.15.46.

* Bump pack from version CommonScripts to 1.15.47.

* Bump pack from version CommonScripts to 1.15.48.

---------

Co-authored-by: Content Bot <bot@demisto.com>
  • Loading branch information
kgal-pan and Content Bot authored Aug 11, 2024
1 parent dfbc41d commit 0c8bd66
Show file tree
Hide file tree
Showing 48 changed files with 876 additions and 797 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# type: ignore
# Disable insecure warnings
from CommonServerPython import *

''' IMPORTS '''
Expand Down Expand Up @@ -257,12 +255,18 @@ def search_queries_list_command(client: DataExplorerClient, args: dict[str, Any]
page_size = arg_to_number(args.get('page_size'))
limit = arg_to_number(args.get('limit', DEFAULT_LIMIT))
client_activity_id = str(args.get('client_activity_id', ''))
validate_list_command_arguments(page, page_size, limit)
validate_list_command_arguments(page, page_size, limit) # type: ignore[arg-type]
response = client.search_queries_list_request(
database_name, client_activity_id)

return retrieve_command_results_of_list_commands(response, 'List of Completed Search Queries',
page, page_size, limit, 'AzureDataExplorer.SearchQuery')
return retrieve_command_results_of_list_commands(
response,
'List of Completed Search Queries',
page, # type: ignore[arg-type]
page_size, # type: ignore[arg-type]
limit, # type: ignore[arg-type]
'AzureDataExplorer.SearchQuery'
)


def running_search_queries_list_command(client: DataExplorerClient, args: dict[str, Any]) -> CommandResults:
Expand All @@ -281,12 +285,18 @@ def running_search_queries_list_command(client: DataExplorerClient, args: dict[s
limit = arg_to_number(args.get('limit', DEFAULT_LIMIT))
client_activity_id = str(args.get('client_activity_id', ''))

validate_list_command_arguments(page, page_size, limit)
validate_list_command_arguments(page, page_size, limit) # type: ignore[arg-type]
response = client.running_search_queries_list_request(
database_name, client_activity_id)

return retrieve_command_results_of_list_commands(response, 'List of Currently running Search Queries',
page, page_size, limit, 'AzureDataExplorer.RunningSearchQuery')
return retrieve_command_results_of_list_commands(
response,
'List of Currently running Search Queries',
page, # type: ignore[arg-type]
page_size, # type: ignore[arg-type]
limit, # type: ignore[arg-type]
'AzureDataExplorer.RunningSearchQuery'
)


def running_search_query_cancel_command(client: DataExplorerClient, args: dict[str, Any]) -> \
Expand Down Expand Up @@ -461,7 +471,7 @@ def retrieve_common_request_body(database_name: str, query: str,
"csl": query
}
if properties:
data['properties'] = properties
data['properties'] = properties # type: ignore[assignment]
return data


Expand Down Expand Up @@ -587,8 +597,8 @@ def main() -> None:
demisto.debug(f'Command being called is {command}')

try:
requests.packages.urllib3.disable_warnings()
client: DataExplorerClient = DataExplorerClient(cluster_url, client_id, client_activity_prefix,
requests.packages.urllib3.disable_warnings() # type: ignore[attr-defined]
client: DataExplorerClient = DataExplorerClient(cluster_url, client_id, client_activity_prefix, # type: ignore[arg-type]
verify_certificate, proxy, connection_type,
tenant_id, enc_key, auth_code, redirect_uri)

Expand Down
6 changes: 6 additions & 0 deletions Packs/AzureDataExplorer/ReleaseNotes/1_3_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Azure Data Explorer

- Maintenance and stability enhancements.
2 changes: 1 addition & 1 deletion Packs/AzureDataExplorer/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Azure Data Explorer",
"description": "Use Azure Data Explorer integration to collect and analyze data inside clusters of Azure Data Explorer and manage search queries.",
"support": "xsoar",
"currentVersion": "1.3.1",
"currentVersion": "1.3.2",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
2 changes: 1 addition & 1 deletion Packs/AzureDevOps/Integrations/AzureDevOps/AzureDevOps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
# type: ignore

from MicrosoftApiModule import * # noqa: E402
import copy
from requests import Response
Expand Down
6 changes: 6 additions & 0 deletions Packs/AzureDevOps/ReleaseNotes/1_4_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### AzureDevOps

- Maintenance and stability enhancements.
2 changes: 1 addition & 1 deletion Packs/AzureDevOps/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "AzureDevOps",
"description": "Create and manage Git repositories in Azure DevOps Services.",
"support": "xsoar",
"currentVersion": "1.4.1",
"currentVersion": "1.4.2",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down
2 changes: 1 addition & 1 deletion Packs/Base/ReleaseNotes/1_34_31.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
- Updated the Docker image to: *demisto/ml:1.0.0.105874*.
##### DBotPreProcessTextData

- Updated the Docker image to: *demisto/ml:1.0.0.105874*.
- Updated the Docker image to: *demisto/ml:1.0.0.105874*.
6 changes: 6 additions & 0 deletions Packs/Base/ReleaseNotes/1_34_34.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Scripts

##### FindSimilarIncidentsByText

- Maintenance and stability enhancements.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# type: ignore
import dateutil.parser
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import linear_kernel
Expand Down
2 changes: 1 addition & 1 deletion Packs/Base/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Base",
"description": "The base pack for Cortex XSOAR.",
"support": "xsoar",
"currentVersion": "1.34.33",
"currentVersion": "1.34.34",
"author": "Cortex XSOAR",
"serverMinVersion": "6.0.0",
"url": "https://www.paloaltonetworks.com/cortex",
Expand Down
Loading

0 comments on commit 0c8bd66

Please sign in to comment.