pyproject-fmt Apply a consistent format to pyproject.toml files. Read the full documentation here. add to pre-commit - repo: https://github.com/tox-dev/pyproject-fmt rev: "1.0.0" hooks: - id: pyproject-fmt