-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve reloading #28
Open
nneskildsf
wants to merge
74
commits into
julvo:master
Choose a base branch
from
nneskildsf:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
Resolved a bug where only the first function decorated with would be reloaded on subsequent invocations. Also, enhanced exception handling to better manage specific cases, such as operating in non-interactive environments
Fix reloading issue with multiple decorated functions
…testing Configure testing workflow
Add typing. Fix tests. Add comments.
…ython versions. Update readme to reflect API change.
…ython versions. Update readme to reflect API change.
Bump version number reflecting API change. Upadte list of supported p…
Allow 'continue' in loop. Support while loop. Support multiple uses of reloading in a single source code file. Add tests. Satisfy pyright. Satisfy flake8. Properly export local variables from loop.
Fix tests on Python versions < 3.13. Improve tests.
Raise exception when reloading is not used as decorator or used outside of the context of a loop. Handle rename/remove of reloaded code.
…python-3-versions Add more Python 3 versions to CI.
Support reloading.reloading Fix tests Add tests
Lint with ruff.
Add tests.
nneskildsf
changed the title
Preserve function signature of decorated function
Improve reloading
Dec 22, 2024
Add test cases with import.
Add Windows to CI
Get variables from outer scope into function scope. Add tests.
Add associated test cases. Tidy imports.
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.
This pull request:
while
loop.break
andcontinue
in reloaded loops.reloading
in one python file.import reloading
.The fork is equipped with a new readme and Github Actions. Check it out here: https://github.com/nneskildsf/reloading.
I hope at least some of these improvements can be merged.
Fixes: #13, #17, #25, #26, #27.
Br Eskild