fix(hook-decorator): upgrade django-lifecycle and remove type: ignore[misc] comments#7890
fix(hook-decorator): upgrade django-lifecycle and remove type: ignore[misc] comments#7890afsuyadi wants to merge 2 commits into
Conversation
|
@afsuyadi is attempting to deploy a commit to the Flagsmith Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @afsuyadi thanks for this contribution! I've unblocked How do you think we should proceed? |
7ee256e to
9a1f573
Compare
9a1f573 to
bf2ae79
Compare
📝 WalkthroughWalkthroughThis pull request bumps the pinned Estimated code review effort: 1 (Trivial) | ~5 minutes Changes
Sequence Diagram(s)Not applicable — this change consists solely of comment removals and a dependency version bump with no observable behavioural or flow changes. Related issues: None referenced in the provided changes. Related PRs: None referenced in the provided changes. Suggested labels: dependencies, chore, type-check Suggested reviewers: None specifically indicated by the diff content. Poem: Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 9a90c458-5cd3-4344-a6ab-fce04c9e3b68
📒 Files selected for processing (11)
api/audit/models.pyapi/environments/models.pyapi/experimentation/models.pyapi/features/feature_external_resources/models.pyapi/features/models.pyapi/features/release_pipelines/core/models.pyapi/features/workflows/core/models.pyapi/integrations/github/models.pyapi/projects/models.pyapi/pyproject.tomlapi/users/models.py
| "sentry-sdk>=2.24.1,<3", | ||
| "environs>=14.1.1,<15.0.0", | ||
| "django-lifecycle>=1.2.4,<1.3.0", | ||
| "django-lifecycle>=1.2.5,<1.3.0", |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
cd api
uv lock --check
rg -n '"django-lifecycle"' pyproject.toml uv.lockRepository: Flagsmith/flagsmith
Length of output: 426
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '\n-- pyproject.toml (around the dependency) --\n'
sed -n '35,50p' api/pyproject.toml | cat -n
printf '\n-- uv.lock (matching entries) --\n'
sed -n '45,60p' api/uv.lock | cat -n
printf '\n'
sed -n '1524,1538p' api/uv.lock | cat -nRepository: Flagsmith/flagsmith
Length of output: 3188
Refresh the lockfile for the dependency bump api/uv.lock still pins django-lifecycle==1.2.4, so it no longer matches the >=1.2.5,<1.3.0 constraint in api/pyproject.toml. Regenerate and commit the lockfile so locked installs pick up the updated version.
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Contributes to #5240
# type: ignore[misc]comments from@hook-decorated methods across 10 filesHow did you test this code?
make typecheck; pass with no [misc] errorsmake testlocally for those 10 files; 2041 tests passed, 0 failures.Cli:
DJANGO_SETTINGS_MODULE=app.settings.test ./flagsmith/api/.venv/bin/pytest tests/unit/audit/ tests/unit/environments/ tests/unit/features/ tests/unit/projects/ tests/unit/users/ tests/unit/integrations/