Skip to content

Conversation

@bnbong
Copy link
Owner

@bnbong bnbong commented Aug 15, 2025

Requesting Merging

Description

official release version 1.1.1

Type of Change

  • BUG FIX
  • ADDING NEW FEATURES
  • FEATURE UPDATE
  • HOTFIX
  • DELETING UNNECESSARY FEATURES
  • DOCUMENTATION & DEVOPS
  • Etc..

Test Environment

local, MacOS Apple Silicon

Major Changes

  • fix template inspection workflow & script
    • fixing uv supportation compatibility
    • for now, template inspection is running with uv package manager

Screenshots (optional)

Etc

close #11

@bnbong bnbong requested a review from Copilot August 15, 2025 10:17
@bnbong bnbong self-assigned this Aug 15, 2025
@bnbong bnbong added bug Something isn't working enhancement New feature or request template Add or editing a FastAPI template labels Aug 15, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR is an official release version 1.1.1 focused on fixing template inspection workflow compatibility with the UV package manager and improving template testing infrastructure.

  • Fixed template inspection to use UV package manager for better compatibility
  • Updated all template pyproject.toml files to support modern Python packaging
  • Enhanced GitHub Actions workflow for template inspection with UV support

Reviewed Changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/test_backends/test_inspector.py Updated test mocks to use new dependency installation function and added requirements.txt creation for test compatibility
Multiple pyproject.toml-tpl files Added complete pyproject.toml configuration files for all FastAPI templates with modern Python packaging standards
Multiple config.py-tpl files Updated type annotations from Python 3.10+ union syntax to backward-compatible Union syntax
src/fastapi_fastkit/core/settings.py Added pyproject.toml to template path detection configuration
src/fastapi_fastkit/backend/package_managers/uv_manager.py Enhanced UV manager to install dev dependencies and added better logging
src/fastapi_fastkit/backend/main.py Added pyproject.toml processing functionality and metadata injection
src/fastapi_fastkit/backend/inspector.py Enhanced template inspector with package manager detection and dummy metadata injection
src/fastapi_fastkit/init.py Bumped version to 1.1.1
CHANGELOG.md Added changelog entry for version 1.1.1
.github/workflows/template-inspection.yml Added UV installation and enhanced workflow reporting

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

# The module defines custom Backend Application Exception class, overrides basic Exception.
# --------------------------------------------------------------------------
from datetime import UTC, datetime
from datetime import datetime, timezone
Copy link

Copilot AI Aug 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] While datetime.timezone.utc is the correct modern approach, consider importing it as UTC for consistency with the existing codebase pattern: from datetime import datetime, timezone as UTC. Then use UTC.utc instead of timezone.utc to maintain naming consistency.

Suggested change
from datetime import datetime, timezone
from datetime import datetime, timezone as UTC

Copilot uses AI. Check for mistakes.
debug_log(
f"Service info is not a dictionary: {service}",
"warning",
)
Copy link

Copilot AI Aug 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The service type validation logic is duplicated in two locations (_wait_for_services_healthy and _verify_services_running). This could lead to maintenance issues. Consider extracting this validation into a helper method like _validate_service_info(service) to avoid code duplication.

Suggested change
)
if not self._validate_service_info(service):

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Aug 15, 2025

Codecov Report

❌ Patch coverage is 77.14286% with 16 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/fastapi_fastkit/backend/inspector.py 66.66% 13 Missing ⚠️
src/fastapi_fastkit/backend/main.py 86.95% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

bnbong and others added 2 commits August 15, 2025 19:22
…d/pyproject.toml-tpl

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bnbong bnbong merged commit e1c171d into main Aug 15, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request template Add or editing a FastAPI template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚨 Weekly Template Inspection Failed - 2025-08-13

2 participants