Add ruff linter and improve code quality configuration
- Add ruff==0.4.0 to requirements.txt for Python linting
- Create pyproject.toml with ruff and mypy configurations
- Auto-fix import sorting and add missing newline
- Both linter and type checker now passing