Spaces:
Build error
Build error
Download scripts/generate_secrets_baseline.py from Varun2007/pageparse.ai: direct link, hf CLI and curl.
- Browser
- Download file 712 Bytes
-
https://huggingface.co/spaces/Varun2007/pageparse.ai/resolve/main/scripts/generate_secrets_baseline.py
- Command line
-
hf download hf://spaces/Varun2007/pageparse.ai/scripts/generate_secrets_baseline.py
-
curl -L -o generate_secrets_baseline.py https://huggingface.co/spaces/Varun2007/pageparse.ai/resolve/main/scripts/generate_secrets_baseline.py
712 Bytes
| #!/usr/bin/env python3 | |
| # SPDX-FileCopyrightText: 2026 Team Centurions | |
| # SPDX-License-Identifier: AGPL-3.0-or-later | |
| import subprocess | |
| from pathlib import Path | |
| ROOT_DIR = Path(__file__).resolve().parent.parent | |
| def main() -> None: | |
| print("Generating .secrets.baseline file...") | |
| cmd = [ | |
| str(ROOT_DIR / ".venv" / "Scripts" / "detect-secrets"), | |
| "scan", | |
| "--exclude-files", | |
| r".*\.specify.*" | |
| ] | |
| res = subprocess.run(cmd, capture_output=True, text=True, check=True) | |
| baseline_path = ROOT_DIR / ".secrets.baseline" | |
| baseline_path.write_text(res.stdout, encoding="utf-8") | |
| print(f"Successfully generated {baseline_path}") | |
| if __name__ == "__main__": | |
| main() | |