1.9 KiB
1.9 KiB
VPN Access Server - Post-Task Completion Actions
After Code Changes
- Run tests:
uv run pytest tests/- Ensure all tests pass - Health check:
uv run vpn-access-server health-check- Verify system integrity - Type checking: Consider running mypy if configured (not currently set up)
- Code review: Check for adherence to style guidelines
After Adding Dependencies
- Update lockfile:
uv lock- Ensure reproducible builds - Test installation:
uv install- Verify dependencies install correctly - Update pyproject.toml: Add version constraints if needed
After Database Schema Changes
- Update scripts: Modify
scripts/init_db.pyfor new schema - Test migration: Run
uv run vpn-access-server init-dbon test environment - Update seed data: Modify
scripts/seed_data.pyif needed - Verify queries: Test all database operations in affected modules
After Adding New Modules (e.g., Email Module)
- Update configuration: Add new config classes and validation in
access/config.py - Update .env.example: Add required environment variables with defaults
- Update imports: Ensure proper import paths in dependent modules
- Add tests: Create corresponding test files in
tests/directory following existing patterns - Install test dependencies: Run
uv sync --group testif needed - Update CLI: Add new commands to
cli.pyif needed - Update documentation: Update README.md and any relevant docs
General Best Practices
- Commit frequently: Small, focused commits with clear messages
- Test thoroughly: Unit tests for new functions, integration tests for workflows
- Security review: Check for credential leaks, SQL injection risks, etc.
- Performance check: Monitor database queries and memory usage
- Documentation: Update docstrings and comments for complex logic