This ensures the same Python target version used for `ruff format` is used for `ruff check` as well. It also allows ruff, even if it's not run through pre-commit, to use the correct target Python version.
This is to avoid running into errors caused by the limited length of command line input when reverting lots of files.