Skip to content

refactor: improve code organization and formatting#2

Merged
itisnotyourenv merged 4 commits intomainfrom
format-code
Aug 2, 2025
Merged

refactor: improve code organization and formatting#2
itisnotyourenv merged 4 commits intomainfrom
format-code

Conversation

@itisnotyourenv
Copy link
Copy Markdown
Owner

Summary

  • Improved code organization and applied consistent formatting across the codebase
  • Added ty dependency for enhanced type annotations
  • Restructured Claude command files for better separation of concerns
  • Applied comprehensive code style improvements including imports, spacing, and type hints

Changes Made

  • Code Formatting: Applied consistent formatting with proper line breaks, spacing, and import organization
  • Type Annotations: Enhanced type hints throughout the codebase, including nullable types and better Protocol definitions
  • Dependencies: Added ty>=0.0.1a16 package for advanced type annotations
  • Command Structure: Split .claude/commands/commit.md into separate commit.md and commit_and_pr.md files, added new create_pr.md command
  • SQLAlchemy Models: Updated user model to use modern mapped_column syntax instead of deprecated Column
  • Exception Handling: Improved exception handler formatting and type annotations
  • Import Organization: Standardized import statements and added proper __all__ exports

Test Plan

  • Code builds successfully
  • All existing functionality preserved
  • Type checking passes
  • No breaking changes to API contracts

🤖 Generated with Claude Code

itisnotyourenv and others added 4 commits August 2, 2025 12:53
- Format imports, function calls, and string literals for consistency
- Improve line breaking in long expressions for readability
- Rename Claude command file from commit.md to commit_and_pr.md
- Add missing newlines and fix quote consistency
- Update exception handling to use more specific patterns

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add ty>=0.0.1a16 to project dependencies
- Make ui_language_code optional in InitDataDTO
- Update type annotations to use union syntax (Bio | None)
- Fix language_code null handling in auth service

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add explicit __all__ exports to domain user module
- Improve line formatting for ui_language_code conditional
- Remove unused Column import from user model
- Enhance module organization with proper exports

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant