Update pyproject.toml and enable minor Ruff rules
#2196
Merged
pyproject.toml and enable minor Ruff rules
#2196