Skip to content

refactor: Clean up imports and improve code readability#12

Closed
usnavy13 wants to merge 5 commits into
mainfrom
dev
Closed

refactor: Clean up imports and improve code readability#12
usnavy13 wants to merge 5 commits into
mainfrom
dev

Conversation

@usnavy13
Copy link
Copy Markdown
Owner

  • Removed unused imports across multiple files, including asyncio and json.
  • Simplified conditional expressions for better clarity in lifespan and execution contexts.
  • Adjusted type hints and default values in models for consistency.
  • Enhanced formatting of long strings for improved readability in configuration files.

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

- Removed unused imports across multiple files, including asyncio and json.
- Simplified conditional expressions for better clarity in lifespan and execution contexts.
- Adjusted type hints and default values in models for consistency.
- Enhanced formatting of long strings for improved readability in configuration files.
- Replaced MAX_CPU with MAX_CPUS for clarity.
- Marked MAX_CPU_QUOTA as deprecated for future reference.
- Changed instructions from pulling prebuilt Docker images to building the execution environment.
- Updated commands for building Python and all language images accordingly.
- Introduced a new `docker-compose.ghcr.yml` file for deploying the application with pre-built images from GitHub Container Registry.
- Updated `.env.example` to include `DOCKER_IMAGE_REGISTRY` for better configuration management.
- Enhanced the `Settings` class to support dynamic Docker image retrieval based on the specified registry.
- Modified `languages.py` to use images without the registry prefix for better compatibility with the new setup.
- Updated the README to reflect changes in execution environment setup and provide instructions for using local vs. pre-built images.
- Updated the Docker publish workflows to support multi-platform builds for linux/amd64 and linux/arm64 architectures.
@usnavy13 usnavy13 closed this Dec 27, 2025
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