--indent was introduced in Python 3.10, so this command will not work for lower Python versions (3.8.10 in my case). For awareness, the pre-commit hook change was introduced with PR #1708.
Recommend developers either remove --indent=4 from the command or update Python to 3.10 or higher.
Description of the bug
Executing a
git commit
leads to the following error for a pre-commit hook:--indent
was introduced in Python 3.10, so this command will not work for lower Python versions (3.8.10 in my case). For awareness, the pre-commit hook change was introduced with PR #1708.Recommend developers either remove
--indent=4
from the command or update Python to 3.10 or higher.Steps To Reproduce
Execute
git commit
to run pre-commit hookAdditional Information
No response