feat: add dynamic task fields and URI providers - #128
Merged
Conversation
Owner
Author
Additional developments on this branchSince the original PR description was written, this branch also includes:
Current verification
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #125.
Field(default=...),Field(default_factory=...), and requiredField()task parameter defaults.invoke_toolkit.field_resolverscheme providers.intk -x create.package --provider <scheme>resolver-only package scaffolding.Versioning
invoke-toolkitderives its version from git tags. No static version file requires editing. The Unreleased changelog has been updated. The PR title intentionally has no[bump ...]keyword, so merge will not trigger an automatic release.Validation
uv run pytest -q tests/test_fields.py tests/test_field_typing.py tests/test_annotated_help.py tests/test_file_completion.py tests/test_completion_with_choices.py tests/test_executor.py tests/extensions/test_create.py -k 'not create_package_create_venv_install_intk_and_package_and_list and not tasks_and_entrypoints_merge' -o addopts=''uv run ty check src/invoke_toolkit/tasks/fields.py src/invoke_toolkit/field_resolvers.py src/invoke_toolkit/tasks/tasks.py src/invoke_toolkit/extensions/tasks/create.py tests/typecheck/fields.pyuv run ruff check src/invoke_toolkit/tasks/fields.py src/invoke_toolkit/field_resolvers.py src/invoke_toolkit/tasks/tasks.py src/invoke_toolkit/extensions/tasks/create.py tests/test_fields.py tests/test_field_typing.py tests/extensions/test_create.py tests/typecheck/fields.py tests/fixtures/future_fields.py