Skip to content

Commit

Permalink
When complaining about a formatting error, say what the error is (#363)
Browse files Browse the repository at this point in the history
Summary:
When complaining about a formatting error, say what the error is

I'm getting an error which _only_ appears on python 3.7 and I can't repro it locally, and CI won't tell me what the error is x_x

Pull Request resolved: #363

Reviewed By: deathowl

Differential Revision: D55365489

Pulled By: shish

fbshipit-source-id: 0d843092e62289b6afb52e37a3b1053ff49c9243
  • Loading branch information
shish authored and facebook-github-bot committed Mar 26, 2024
1 parent 5d11bb9 commit 86a7124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -120,7 +120,7 @@ flake8: venv
.PHONY: black
black: venv
@printf "${TERM_BRIGHT}BLACK ${ALL_SRCS}\n${TERM_NONE}"
${Q} ${CURDIR}/venv/bin/black --check $(ALL_SRCS) || { echo "Formatting errors found, try running 'make format'."; exit 1; }
${Q} ${CURDIR}/venv/bin/black --check --diff $(ALL_SRCS) || { echo "Formatting errors found, try running 'make format'."; exit 1; }

.PHONY: isort
isort: venv
Expand Down

0 comments on commit 86a7124

Please sign in to comment.