tools: lint python files to 3.8
This PR executes tools/pip/site-packages/bin/ruff check . --fix --unsafe-fixes
on the repository.
The make test
command successfully passes.
Additionally, UP
has been added to the pyproject.toml
file to prevent support for outdated (unsupported) Python versions.