Introduce pre-commit hooks to automatically check for and fix potential issues surrounding syntax, style, and file structure. Suggested approach includes using ruff as the formatter.