From 9b9f4841eb361b227795f9e1316f3ac88731151f Mon Sep 17 00:00:00 2001 From: thomas loubrieu Date: Thu, 16 Jan 2025 13:57:37 -0500 Subject: [PATCH] ignore type for mypy --- .github/workflows/codeql-analysis.yml | 20 ++++++++++---------- src/pds/registrysweepers/utils/db/client.py | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 46dc7be..60d8620 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -53,25 +53,25 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 - + - run: | pip install nasa-scrub - + results_dir=`realpath ${{ github.workspace }}/../results` sarif_files=`find $results_dir -name '*.sarif'` - + for sarif_file in $sarif_files do output_file="$results_dir/$(basename $sarif_file .sarif).scrub" - + python3 -m scrub.tools.parsers.translate_results $sarif_file $output_file ${{ github.workspace }} scrub done - + python3 -m scrub.tools.parsers.csv_parser $results_dir - + echo "RESULTS_DIR=$results_dir" >> $GITHUB_ENV - - + + - name: Upload CodeQL Artifacts uses: actions/upload-artifact@v4 with: @@ -96,8 +96,8 @@ jobs: uses: djdefi/cloc-action@6 with: options: --report-file=cloc.md - - + + - name: Upload SLOC uses: actions/upload-artifact@v4 diff --git a/src/pds/registrysweepers/utils/db/client.py b/src/pds/registrysweepers/utils/db/client.py index df21964..a1cf361 100644 --- a/src/pds/registrysweepers/utils/db/client.py +++ b/src/pds/registrysweepers/utils/db/client.py @@ -5,9 +5,9 @@ import boto3 # type: ignore import requests -from botocore.credentials import Credentials # type: ignore +from botocore.credentials import Credentials from opensearchpy import OpenSearch -from opensearchpy import RequestsAWSV4SignerAuth # type: ignore +from opensearchpy import RequestsAWSV4SignerAuth from opensearchpy import RequestsHttpConnection from requests_aws4auth import AWS4Auth # type: ignore