+full refactor

+feat: configuration, progress bar, OSV
This commit is contained in:
2026-01-18 13:54:14 +03:00
parent b8c25b2529
commit a5714116ac
730 changed files with 246974 additions and 150 deletions
+53
View File
@@ -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",
}