+full refactor
+feat: configuration, progress bar, OSV
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
from __future__ import annotations
|
||||
|
||||
SKIP_DIRS: set[str] = {
|
||||
".git",
|
||||
"node_modules",
|
||||
"vendor",
|
||||
"dist",
|
||||
"build",
|
||||
"target",
|
||||
".venv",
|
||||
"__pycache__",
|
||||
".idea",
|
||||
".vscode",
|
||||
}
|
||||
|
||||
MANIFEST_NAMES: set[str] = {
|
||||
# Python
|
||||
"requirements.txt",
|
||||
"Pipfile",
|
||||
"pyproject.toml",
|
||||
"poetry.lock",
|
||||
# Node
|
||||
"package.json",
|
||||
"package-lock.json",
|
||||
"yarn.lock",
|
||||
"pnpm-lock.yaml",
|
||||
# Go
|
||||
"go.mod",
|
||||
"go.sum",
|
||||
# Rust
|
||||
"Cargo.toml",
|
||||
"Cargo.lock",
|
||||
# Java
|
||||
"pom.xml",
|
||||
"build.gradle",
|
||||
"build.gradle.kts",
|
||||
# .NET
|
||||
"packages.config",
|
||||
}
|
||||
|
||||
|
||||
OSV_QUERYBATCH_URL = "https://api.osv.dev/v1/querybatch"
|
||||
|
||||
OSV_ECOSYSTEM_MAP: dict[str, str] = {
|
||||
"pypi": "PyPI",
|
||||
"npm": "npm",
|
||||
"go": "Go",
|
||||
"cargo": "crates.io",
|
||||
"maven": "Maven",
|
||||
"gradle": "Maven",
|
||||
"nuget": "NuGet",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user