Skip to content

Address mise-uv-init.py recursive bug#105

Open
glen-level12 wants to merge 4 commits into
level12:mainfrom
glen-level12:bug-fixes
Open

Address mise-uv-init.py recursive bug#105
glen-level12 wants to merge 4 commits into
level12:mainfrom
glen-level12:bug-fixes

Conversation

@glen-level12

@glen-level12 glen-level12 commented Jun 3, 2026

Copy link
Copy Markdown
  • This resolves the recursive loop and crash in coppy-ed packages.
  • Addresses Bug in mise-uv-init.py results in recursive error loop? #104
  • I also noticed ruff.toml have a version of python that didn't match the project, so this strips its version, so ruff now looks in pyproject.toml, and there will no longer be drift across the two.
  • Tests added for both fixes

@rsyring rsyring changed the title Bug fixes Address mise-uv-init.py recursive bug Jun 8, 2026
@rsyring

rsyring commented Jun 8, 2026

Copy link
Copy Markdown
Member

There are no tests for the specific use case of using shim based activation of mise, which is why we didn't have any test failures yet up to this point. It would be a good idea to review the tests to see how hard it would be to work that test case into them. I'm not sure how deep I've buried the current mise execution paradigm into the test helpers.

Comment thread src/coppy/migrate.py Outdated
# Matches the exact line older versions of the template emitted in ruff.toml:
# target-version = 'py313'
# Stripping it lets ruff auto-derive the target from pyproject.toml's `requires-python`.
LEGACY_RUFF_TARGET_VERSION_RE = re.compile(r"^target-version = 'py\d+'\n", re.MULTILINE)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think you need this. If you remove the line from ruff.toml copier will apply that change on update.

Explicit migration steps are only needed if something outside of template file adjustments are needed.

But this change to the ruff config should just be a template file adjustments.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

removed

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.

2 participants