Get started with SynTechRev-PolyCodCal development in 5 minutes!
- Python 3.11, 3.12, or 3.13
- Git
- VS Code (recommended) or your preferred editor
git clone https://github.com/SynTechRev/SynTechRev-PolyCodCal.git
cd SynTechRev-PolyCodCalWindows:
python -m venv .venv
.venv\Scripts\activatemacOS/Linux:
python -m venv .venv
source .venv/bin/activatepip install -r dev-requirements.txt
pip install -e .pre-commit installpytest -vYou should see:
================ 15 passed in 0.04s ================
✅ You're ready to develop!
code .- When VS Code opens, you'll see a notification about recommended extensions
- Click "Install All"
- Wait for extensions to install
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type "Python: Select Interpreter"
- Choose the one that shows
.venv
- Open the Testing panel (flask icon in sidebar)
- Click the play button to run all tests
- See green checkmarks ✅
python scripts/feedback_monitor.py examples/events.jsonlCreate test_script.py:
from syntechrev_polycodcal.feedback_monitor import FeedbackMonitor
# Create monitor
mon = FeedbackMonitor(window_seconds=60, threshold=0.3)
# Add some events
mon.ingest({"timestamp": None, "outcome": "ok"})
mon.ingest({"timestamp": None, "outcome": "error"})
mon.ingest({"timestamp": None, "outcome": "error"})
# Check for alerts
alert = mon.check()
if alert:
print(f"Alert! Negative rate: {alert.metric_value:.2%}")
else:
print("No alerts")Run it:
python test_script.pygit checkout -b feature/my-first-changeOpen src/syntechrev_polycodcal/core.py and make a small change
pytest -vblack src tests scripts
ruff check .Or in VS Code: Ctrl+Shift+B (Run all quality checks)
git add .
git commit -m "feat: describe your change"git push -u origin feature/my-first-change# Run all tests
pytest -v
# Run with coverage
pytest --cov=src/syntechrev_polycodcal --cov-report=term-missing
# Run specific test
pytest tests/test_feedback_monitor.py::test_no_alert_below_threshold -v# Format code
black src tests scripts
# Check linting
ruff check .
# Type checking
mypy src
# All pre-commit checks
pre-commit run --all-filesCtrl+Shift+T- Run testsCtrl+Shift+B- Run quality checksF5- Debug current fileCtrl+`- Toggle terminalCtrl+Shift+P- Command palette
SynTechRev-PolyCodCal/
├── src/syntechrev_polycodcal/ # Source code
│ ├── __init__.py
│ ├── core.py
│ └── feedback_monitor.py # Main monitoring module
├── tests/ # Test files
│ ├── test_core.py
│ ├── test_feedback_monitor.py
│ └── test_feedback_monitor_extra.py
├── scripts/ # Utility scripts
│ └── feedback_monitor.py # CLI tool
├── examples/ # Example data
│ └── events.jsonl
├── docs/ # Documentation
│ └── DEVELOPMENT_WORKFLOW.md
├── .vscode/ # VS Code settings
├── CODE_REPAIR_STRATEGY.md # Code quality guide
├── CONTRIBUTING.md # Contribution guide
└── README.md # Main documentation
- Read README.md for project overview
- Explore
src/syntechrev_polycodcal/feedback_monitor.py - Review tests in
tests/directory
- Read CONTRIBUTING.md for detailed guidelines
- Check docs/DEVELOPMENT_WORKFLOW.md for process diagrams
- Review CODE_REPAIR_STRATEGY.md for quality practices
- Check open issues on GitHub
- Look for "good first issue" labels
- Ask questions in discussions
- Submit your first PR!
- General: README.md
- Contributing: CONTRIBUTING.md
- Workflow: docs/DEVELOPMENT_WORKFLOW.md
- VS Code: .vscode/README.md
- Code Quality: CODE_REPAIR_STRATEGY.md
Tests not running?
- Check Python interpreter is set to
.venv - Ensure pytest is installed:
pip install pytest - Reload VS Code window
Formatter not working?
- Install black:
pip install black - Check "Format on Save" is enabled in VS Code settings
Import errors?
- Ensure package is installed:
pip install -e . - Check PYTHONPATH includes
srcdirectory
- Open an issue on GitHub
- Ask in discussions
- Review existing documentation
You now have:
- ✅ Working development environment
- ✅ All tests passing
- ✅ VS Code configured and ready
- ✅ Understanding of basic workflow
- ✅ Resources to learn more
Happy coding! 🎉
Ready to dive deeper? Check out:
- CONTRIBUTING.md - Detailed contribution guide
- docs/DEVELOPMENT_WORKFLOW.md - Complete workflow
- CODE_REPAIR_STRATEGY.md - Quality assurance
Need more details? All commands and concepts are explained in depth in the full documentation.