Batch: Fix remaining bugs #2

Open
Tasch wants to merge 1 commit from batch/fix-remaining-bugs into master
Owner

Fixes

  1. Remove unused repo variable (routes.py:159) — was assigned but never used
  2. Use StrEnum for ActionStatus (Python 3.11+ enum pattern)
  3. Replace deprecated class Config with model_config = {...} in FreeTestAction and Source
  4. Add noqa comments for intentional re-exports in models.py (E402, F401)

Files changed

  • src/api/routes.py
  • src/core/models.py
## Fixes 1. **Remove unused `repo` variable** (`routes.py:159`) — was assigned but never used 2. **Use StrEnum** for `ActionStatus` (Python 3.11+ enum pattern) 3. **Replace deprecated `class Config`** with `model_config = {...}` in FreeTestAction and Source 4. **Add noqa comments** for intentional re-exports in models.py (E402, F401) ## Files changed - src/api/routes.py - src/core/models.py
Fix remaining bugs: unused repo var, StrEnum, model_config
Some checks failed
CI / lint (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
26d175b3b0
- Remove unused 'repo' variable in trigger_scan (routes.py)
- Change ActionStatus to use StrEnum instead of str, Enum
- Replace deprecated class Config with model_config dict
- Add noqa comments for intentional re-exports in models.py
Some checks failed
CI / lint (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin batch/fix-remaining-bugs:batch/fix-remaining-bugs
git switch batch/fix-remaining-bugs

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff batch/fix-remaining-bugs
git switch batch/fix-remaining-bugs
git rebase master
git switch master
git merge --ff-only batch/fix-remaining-bugs
git switch batch/fix-remaining-bugs
git rebase master
git switch master
git merge --no-ff batch/fix-remaining-bugs
git switch master
git merge --squash batch/fix-remaining-bugs
git switch master
git merge --ff-only batch/fix-remaining-bugs
git switch master
git merge batch/fix-remaining-bugs
git push origin master
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Tasch/try-it-for-free!2
No description provided.