This project uses pyproject.toml and uv.lock for dependency management.
pyenv local 3.11
make first-time-setuppyenv local 3.11
SOCKET_SDK_PATH=~/path/to/socketdev make first-time-local-setupDefault local SDK path is ../socketdev when SOCKET_SDK_PATH is not set.
After dependency changes:
make update-depsAfter pulling latest changes:
make sync-allRun tests:
make testThis runs both the unit and core suites. To focus on the CLI exit-code contract:
uv run pytest tests/core/test_cli_exit_contract.py tests/core/test_exit_codes.pyRun lint/format checks:
make lintHigh-level:
make first-time-setupmake first-time-local-setupmake update-lockmake sync-allmake dev-setup
Implementation:
make local-devmake setupmake syncmake cleanmake testmake lint
Core:
SOCKET_SECURITY_API_TOKEN(also supportsSOCKET_SECURITY_API_KEY,SOCKET_API_KEY,SOCKET_API_TOKEN)SOCKET_SDK_PATH(default../socketdev)
GitLab:
GITLAB_TOKENCI_JOB_TOKEN
python -m venv .venv
source .venv/bin/activate
uv syncInstall pre-commit outside the project's virtual environment. If your existing
hook was installed from .venv, reinstall it with the commands below so it
continues to work after uv sync removes the project copy of pre-commit.
uv tool install pre-commit
"$(uv tool dir --bin)/pre-commit" install- CLI quick start:
../README.md - CI/CD usage:
ci-cd.md - Full CLI reference:
cli-reference.md - Troubleshooting:
troubleshooting.md