Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/cruft-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,17 @@ jobs:
enable-cache: true

- name: Set up Python
run: uv python install 3.12
# Ubuntu runner images ship an externally managed system interpreter
# (PEP 668), which uv refuses to install into. Build a dedicated venv
# and put it first on PATH so later `python` calls resolve to it.
run: |
uv python install 3.12
uv venv --python 3.12 "${RUNNER_TEMP}/cruft-venv"
echo "${RUNNER_TEMP}/cruft-venv/bin" >> "${GITHUB_PATH}"

- name: Install dependencies
run: |
uv pip install --system cruft pyyaml
uv pip install --python "${RUNNER_TEMP}/cruft-venv/bin/python" cruft pyyaml

- name: Configure Git
run: |
Expand Down Expand Up @@ -109,11 +115,17 @@ jobs:
enable-cache: true

- name: Set up Python
run: uv python install 3.12
# Ubuntu runner images ship an externally managed system interpreter
# (PEP 668), which uv refuses to install into. Build a dedicated venv
# and put it first on PATH so later `python` calls resolve to it.
run: |
uv python install 3.12
uv venv --python 3.12 "${RUNNER_TEMP}/cruft-venv"
echo "${RUNNER_TEMP}/cruft-venv/bin" >> "${GITHUB_PATH}"

- name: Install dependencies
run: |
uv pip install --system cruft pyyaml
uv pip install --python "${RUNNER_TEMP}/cruft-venv/bin/python" cruft pyyaml

- name: Configure Git
run: |
Expand Down
38 changes: 20 additions & 18 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ def setup_claude_user_settings() -> None:


def _collect_optional_features(
*,
include_background_jobs: str,
include_frontend: str,
include_docker: bool,
Expand Down Expand Up @@ -914,6 +915,7 @@ def _print_infrastructure_integrations(


def _print_developer_tool_integrations(
*,
include_semantic_release: bool,
include_coderabbit: bool,
include_linear: bool,
Expand Down Expand Up @@ -1005,17 +1007,17 @@ def print_success_message() -> None:
print("=" * 60)

optional_features = _collect_optional_features(
include_background_jobs,
include_frontend,
include_docker,
include_sentry,
include_health_checks,
include_caching,
include_load_testing,
include_semantic_release,
include_coderabbit,
include_linear,
include_supply_chain,
include_background_jobs=include_background_jobs,
include_frontend=include_frontend,
include_docker=include_docker,
include_sentry=include_sentry,
include_health_checks=include_health_checks,
include_caching=include_caching,
include_load_testing=include_load_testing,
include_semantic_release=include_semantic_release,
include_coderabbit=include_coderabbit,
include_linear=include_linear,
include_supply_chain=include_supply_chain,
)
if optional_features:
print("\n✨ Optional features included:")
Expand All @@ -1027,13 +1029,13 @@ def print_success_message() -> None:
include_docker, include_background_jobs, include_load_testing, include_sentry
)
_print_developer_tool_integrations(
include_semantic_release,
include_coderabbit,
include_linear,
include_supply_chain,
include_frontend,
frontend_package_manager,
include_docker,
include_semantic_release=include_semantic_release,
include_coderabbit=include_coderabbit,
include_linear=include_linear,
include_supply_chain=include_supply_chain,
include_frontend=include_frontend,
frontend_package_manager=frontend_package_manager,
include_docker=include_docker,
)

print("\n" + "=" * 60)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ class RateLimitMiddleware(BaseHTTPMiddleware):
def __init__(
self,
app: ASGIApp,
*,
requests_per_minute: int = 60,
burst_size: int = 10,
max_tracked_ips: int = 10000,
Expand Down
Loading