-
Notifications
You must be signed in to change notification settings - Fork 1
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
Backend refactoring #59
Conversation
da51cb5
to
398ca4d
Compare
Thanks for doing this work! I already have some general comments, just from a first brief look at the diff (so I might have missed something):
|
e8db0c1
to
df5e8b4
Compare
Hi @Wuestengecko , thank you for this review comment! I considered it and after our discussion I introduced a separate |
Could you please rebase on top of latest master (at your convenience)? Should be straight forward, as there are no conflicts and no tool changes that should affect formatting of this PR. |
44b3b9a
to
f0d8e03
Compare
done |
1ab43e8
to
d45bde4
Compare
Move backend app from a dataclass in `explorer` to a global `app` object in the new `main` module. Application state is now contained in the new `state` submodule. This allows using standard uvicorn commands, and also allows passing additional uvicorn arguments like `--reload`.
This fixes the "Fetch failed" error in the version display.
The Docker-based pre-commit hooks depent on bind mounts that are accessible by the host. This commit changes the hooks to use the local system commands instead of the Docker-based commands.
This ensures that they are actually available for shell substitutions, even if not passed explicitly.
d45bde4
to
468b61c
Compare
Move backend app from data class in
explorer.py
to a globalapp
inmain.py
and launch withuvicorn
command.