Skip to content
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

setup live reload #473

Merged
merged 2 commits into from
Aug 31, 2023
Merged

setup live reload #473

merged 2 commits into from
Aug 31, 2023

Conversation

fscherf
Copy link
Member

@fscherf fscherf commented Aug 22, 2023

Jup, you read that right and I am eating my hat on this one.
I stated pretty loudly that I am against a live reload feature, but I have to admit that watchfiles works pretty good these days and the feature is pretty neat.

@codecov-commenter
Copy link

codecov-commenter commented Aug 26, 2023

Codecov Report

Patch coverage: 27.77% and project coverage change: -1.03% ⚠️

Comparison is base (2b1fadf) 72.74% compared to head (73153fd) 71.72%.

❗ Current head 73153fd differs from pull request most recent head 4c6d63e. Consider uploading reports for the commit 4c6d63e to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #473      +/-   ##
==========================================
- Coverage   72.74%   71.72%   -1.03%     
==========================================
  Files          84       84              
  Lines        5746     5761      +15     
  Branches     1235     1238       +3     
==========================================
- Hits         4180     4132      -48     
- Misses       1301     1349      +48     
- Partials      265      280      +15     
Files Changed Coverage Δ
lona/command_line/handle_command_line.py 0.00% <0.00%> (ø)
lona/command_line/run_server.py 25.45% <0.00%> (-0.97%) ⬇️
lona/app.py 57.92% <25.00%> (-0.84%) ⬇️
lona/default_settings.py 100.00% <100.00%> (ø)

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This patch adds live reload to Lona server, based on watchfiles.
Because watchfiles requires scripts to use

    if __name__ == '__main__':
        pass

this patch also updates all examples that show Lona scripts.

Signed-off-by: Florian Scherf <mail@florianscherf.de>
@fscherf fscherf force-pushed the fscherf/live-reload branch 2 times, most recently from e4f15eb to 43a2d7e Compare August 31, 2023 20:28
Signed-off-by: Florian Scherf <mail@florianscherf.de>
@fscherf fscherf merged commit 982df35 into master Aug 31, 2023
5 checks passed
@fscherf fscherf deleted the fscherf/live-reload branch August 31, 2023 21:00
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