Skip to content

Commit a285248

Browse files
committed
fixed lint errors
1 parent 194a4b3 commit a285248

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

functions-python/tasks_executor/src/tasks/licenses/populate_licenses.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def populate_licenses_task(dry_run, db_session):
6161
for file_info in files:
6262
if file_info["type"] == "file" and file_info["name"].endswith(".json"):
6363
download_url = file_info["download_url"]
64-
logging.info("Downloading license from %s", download_url)
6564
license_response = requests.get(download_url, timeout=10)
6665
license_response.raise_for_status()
6766
licenses_data.append(license_response.json())
@@ -70,11 +69,6 @@ def populate_licenses_task(dry_run, db_session):
7069

7170
if dry_run:
7271
logging.info("Dry run: would process %d licenses.", len(licenses_data))
73-
for license_data in licenses_data:
74-
logging.info(
75-
"Dry run: processing license %s",
76-
license_data.get("spdx", {}).get("licenseId", "unknown"),
77-
)
7872
else:
7973
for license_data in licenses_data:
8074
spdx_data = license_data.get("spdx")

functions-python/tasks_executor/tests/tasks/populate_licenses_and_rules/test_populate_licenses.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import logging
21
import unittest
3-
from unittest.mock import MagicMock, call, patch
2+
from unittest.mock import MagicMock, patch
43

5-
import pytest
64
import requests
75
from shared.database.database import Session
86
from shared.database_gen.sqlacodegen_models import License, Rule

0 commit comments

Comments
 (0)