While partly a matter of taste, 79 is the suggested line length in the PEP 8 – Style Guide for Python Code, and 88-90 is a more standard line length in Python. 299 as you indicate in the pre-commit configuration is definitely too long as it will get out of the screen in pretty much all editors and screens, which difficults code readability.