Use ruff for linting and formatting. Also for improving security with Bandit rules, and modernize the Python syntax with "UP" rule to do pyupgrade