Make lb-format fail if the project uses pre-commit
With the idea of migrating projects from the custom lb-format to https://pre-commit.com (see gaudi/Gaudi!1261 (merged)), this MR makes lb-format refuse to operate on a file that should be checked/formatted with pre-commit and suggests to use pre-commit instead.
Edited by Marco Clemencic