'Simplifying line length with pre-commit, flake8, black, isort, pylint, etc

When using multiple tools that either check or format python files, is there a way to set line length once for all?

Currently I have:

.flake8 file:

max-line-length = 120

.isort.cfg file:

line-length = 120

.black file:

line-length = 120

.pylintrc file:

max-line-length = 120


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source