Conversation
Closely following Flask's switch over to uv in pallets/flask#5727.
|
Sorry, I am new to uv. I think the dev commands should be:
If you need to change Python version, the only option I found was to delete the venv and rerun the previously listed commands, but probably it's me being dense. EDIT: |
|
Apologies for not giving good instructions. We are switching to You should be able to, from nothing, in this repo just run |
Yep good call - I think we do need to/should do this 👍 |
|
I get the same with This afternoon I will check if the automatic tests are installing different versions but I can immediately see that they are using Python 3.13. |
uv pip install sqlalchemy <2 fails to reinstall compatible version of flask-sqlalchemy, so specify it.
Previously, version for typing, docs and style was hardcoded to 3.11. This should be reverted to python-version-file: pyproject.toml and pyproject.toml should specify upper bound for python version. Temporarily hardcoding again to pass tests
|
It's getting late, tomorrow I will revert 4bb577c |
|
Thanks for the styling fixes, looks like pre-commit local hook does not work anymore? The good news is: The bad news is that now we are checking also with pyright, which is much stricter. It will take me a while to fix them (I agree with pyright) since:
Maybe we can temporarily disable pyright (as we were doing before) and accept the PR? |
|
E: that's what you said; I agree 👍 |
|
Nice. I think we still need to go through an update all the docs to refer to |
I still do not see automatic pre-commit hook, even though I see the yaml. Am I doing something wrong? I ran EDIT: sorry, almost forgot - the way in which I solved the error in sqlalchemy1 feels hacky: in 94b357f, I added a command specifying to install the maximum compatible flask-sqlalchemy version with |
|
Can you try doing The hooks work for me after this - let me know if they don't? |
I did that, will see next time I commit and in case we add it to the readme for development. |
|
Ah yeah that's annoying. Looks like Though there is apparently a workaround we can try of adding |
|
I like being able to start with the basic environment or you never catch the mishaps like pillow in the type hints, so as long as we document the right command, it sounds good to me as it is right now |
Closely following Flask's switch over to uv in
pallets/flask#5727.
Use uv to manage dev dependencies.
New env setup steps are:
uv run toxTo do