diff --git a/.deepsource.toml b/.deepsource.toml new file mode 100644 index 000000000..2a4202f4c --- /dev/null +++ b/.deepsource.toml @@ -0,0 +1,65 @@ +version = 1 + +[[analyzers]] +name = "python" +enabled = true + + [analyzers.meta] + runtime_version = "3.x.x" + + [analyzers.pylint] + enabled = true + config = """ + [MESSAGES CONTROL] + disable = C0111 # Disables missing docstring warnings + """ + +[[analyzers]] +name = "javascript" +enabled = true + + [analyzers.meta] + plugins = [ + "react", + "vue", + "angular" + ] + environment = [ + "nodejs", + "mocha", + "mongo", + "browser", + "jasmine", + "cypress", + "vitest", + "jquery", + "jest" + ] + +[[transformers]] +name = "autopep8" +enabled = false # Disables autopep8 transformer + +[[transformers]] +name = "isort" +enabled = false # Disables isort transformer + +[[transformers]] +name = "black" +enabled = false # Disables black transformer + +[[transformers]] +name = "yapf" +enabled = false # Disables yapf transformer + +[[transformers]] +name = "ruff" +enabled = false # Disables ruff transformer + +[[transformers]] +name = "standardjs" +enabled = false # Disables standardjs transformer + +[[transformers]] +name = "prettier" +enabled = false # Disables prettier transformer diff --git a/.whitesource b/.whitesource new file mode 100644 index 000000000..9c7ae90b4 --- /dev/null +++ b/.whitesource @@ -0,0 +1,14 @@ +{ + "scanSettings": { + "baseBranches": [] + }, + "checkRunSettings": { + "vulnerableCheckRunConclusionLevel": "failure", + "displayMode": "diff", + "useMendCheckNames": true + }, + "issueSettings": { + "minSeverityLevel": "LOW", + "issueType": "DEPENDENCY" + } +} \ No newline at end of file diff --git a/WebBasedData/screenshot-database-v2.json b/WebBasedData/screenshot-database-v2.json index 0a1936891..0354b9255 100644 --- a/WebBasedData/screenshot-database-v2.json +++ b/WebBasedData/screenshot-database-v2.json @@ -1,8 +1,8 @@ { "package_count": { "total": 11707, - "done": 5107, - "packages_with_icon": 5107, + "done": 5108, + "packages_with_icon": 5108, "packages_with_screenshot": 584, "total_screenshots": 1819 }, @@ -29221,7 +29221,7 @@ "images": [] }, "optionsplus": { - "icon": "", + "icon": "http://www.logitech.com/assets/66208/optionsplusicon.png", "images": [] }, "optipng": { diff --git a/WebBasedData/test_urls.py b/WebBasedData/test_urls.py index 50862ae29..aa5e6d57a 100644 --- a/WebBasedData/test_urls.py +++ b/WebBasedData/test_urls.py @@ -21,7 +21,7 @@ print("Package failed:", package, data["icons_and_screenshots"][package]["icon"]) with open("invalid_urls.txt", "a") as f: f.write(data["icons_and_screenshots"][package]["icon"] + "\n") - elif response.status_code != 200 and response.status_code != 403: + elif response.status_code not in (200, 403): print(response.status_code, "failed for:", data["icons_and_screenshots"][package]["icon"]) except requests.exceptions.ConnectionError: @@ -29,7 +29,7 @@ try: if data["icons_and_screenshots"][package]["icon"] != "": response = requests.get(data["icons_and_screenshots"][package]["icon"]) - if response.status_code == 403 or response.status_code == 404: + if response.status_code in (403, 404): print("Package failed:", package, data["icons_and_screenshots"][package]["icon"]) elif response.status_code != 200: response = requests.get(data["icons_and_screenshots"][package]["icon"])