Conversation
- Add GitHub Actions CI pipeline (lint, typecheck, test matrix 3.10-3.12) - Add GitHub Actions release workflow with semantic-release and PyPI OIDC - Add .pre-commit-config.yaml (black, isort, ruff, conventional-commits) - Add .env.example template for required env vars - Update .gitignore to exclude dist/, build/, and .env
- Bump requires-python to >=3.10 - Add dev deps: pytest-cov, ruff, build, python-semantic-release, uvicorn - Replace flake8 with ruff; remove unused sqlite optional extra - Add [tool.ruff] and [tool.ruff.lint] configuration (ignores B008/E501) - Add [tool.coverage.run] and [tool.coverage.report] (fail_under=70) - Add [tool.semantic_release] for automated versioning and PyPI publishing - Update [tool.mypy] to python_version=3.10 with ignore_missing_imports - Add hatch sdist explicit include list - Change classifier to Development Status :: 4 - Beta
- __init__.py: add importlib.metadata version lookup with fallback - site.py, config.py, registry.py: replace Optional[X]/Type[X] with X|None/type[X] - Remove unused imports (os, Depends, create_auth_dependency, get_current_user) - Fix whitespace in blank lines and trailing whitespace - Organize import blocks per isort/ruff
- Replace Optional[X]/Dict[X,Y]/Type[X] with X|None/dict/type throughout - Fix B904: add 'raise ... from e/err' in except blocks (form_engine, router_factory) - Fix whitespace and trailing whitespace in blank lines - Organize import blocks per isort - Remove unused imports
- Replace Optional/Dict/List/Tuple with builtin equivalents throughout - Fix E722: replace bare 'except:' with 'except Exception:' in routes.py - Fix whitespace in blank lines and organize imports - activity.py: minor cleanup and import organization - permissions.py, security.py: type annotation modernization
- Replace Optional[X] with X | None in engine.py and session.py - Fix whitespace in blank lines and trailing whitespace - Organize import blocks per isort - admin_tables.py: minor import cleanup
- Replace DemoUser with built-in AdminUser (shared table with CLI) - Read DATABASE_URL and SECRET_KEY from env/.env - Remove default admin/password123 seeding (user must run createsuperuser) - Register AdminUser in admin panel with password_hash excluded - Delete demo_web.py (superseded by updated demo.py)
- CHANGELOG.md: rewrite in Keep a Changelog format with full v0.1.0 entry - CONTRIBUTING.md: add automated versioning/release section, pre-commit setup, conventional commits table, required GitHub secrets reference - README.md: minor updates for demo section (no default credentials)
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (32)
📝 WalkthroughWalkthroughThis PR introduces comprehensive infrastructure and modernization updates: CI/CD workflows for linting, testing, and semantic-versioned releases; modernizes type annotations across the codebase to Python 3.10+ style; adds environment configuration; consolidates demo application code; updates build configuration and dependencies; and bumps Python requirement to 3.10+. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Documentation
Refactor