Update ruff version
Summary
There are new updates available for ruff, introducing changes to rules and adding new ones.
Currently the version is specified in the poetry lockfile and also in the pre-commit config. It needs to be updated in both places