| name | add-dependencies |
| description | How to add Python or Node.js dependencies to this project. USE FOR: adding a new package; understanding where dependencies are declared; knowing what to run after adding a dependency; understanding how security scanning covers new dependencies. DO NOT USE FOR: general coding; writing tests; deployment. |
Adding Dependencies
Python Dependencies
Dependencies are declared in pyproject.toml.
Runtime dependency (required by the application)
Add to the [project] dependencies list:
[project]
dependencies = [
"requests>=2.31.0",
"your-new-package>=1.0.0",
]
Development-only dependency (testing, linting, tooling)
Add to [project.optional-dependencies] under dev:
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"your-dev-package>=1.0.0",
]
After editing pyproject.toml:
make setup
Node.js Dependencies
Node.js is used only for documentation linting (markdownlint).
Declare packages in package.json, then run:
npm install
Security
All Python dependencies are automatically scanned for known vulnerabilities by pip-audit in CI.
You can run the scan locally at any time:
make security-scan
make security-pip-audit
Do not add a dependency with known high-severity CVEs.
If pip-audit reports an issue after adding a package, either pin a patched version or choose an alternative.