Apply formatting changes from recent ruff upgrade and remove obsolete ignored error rules that are no longer needed.