Switch to Rye for project management
Rye is Python project and package manager that can be used instead of Poetry.
The main advantages are speed and better conformance with Python packaging policies.
This MR changes the tool used to manage the application from Poetry to Rye, with some minor fixes along the way (like use of Ruff instead of Black and iSort).