Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.13 KB

File metadata and controls

60 lines (43 loc) · 1.13 KB

Support repo for my gen_ai and agentic_ai work

Setup

  • please make sure script is executable
chmod +x scripts/dev.py
  • To add dev dependencies
uv add --dev nbstripout nbconvert ruff pyright bandit detect-secrets pre-commit safety
  • To setup pre-commit hook
uv run pre-commit install
  • Auto update pre-commit config file
uv run pre-commit autoupdate
  • create baseline files
uv run detect-secrets scan --all-files --exclude-files '\.git/.*|\.venv/.*|node_modules/.*|\.ruff_cache/.*' > .secrets.baseline
  • create bandit baseline file
uv run bandit -r . -f json -o bandit-report.json
  • audit secret baseline file
uv run detect-secrets audit .secrets.baseline

important commands

  • To update pre-commit automatically
uv run pre-commit autoupdate
  • To validate pre-commit config
uv run pre-commit validate-config .pre-commit-config.yaml
  • To test github action in local environment using docker and act tool
act  --container-architecture linux/amd64