Srinivas
Srinivas

Reputation: 2100

how do we identify lint format check format

I am working in a python code base that throws this error when I run the the command

make test



Oh no! 💥 💔 💥
1 file would be reformatted, 28 files would be left unchanged.
make: *** [auto-format-check] Error 1

My question is, how do I identify which line has the formatting issue?

Upvotes: 0

Views: 1186

Answers (1)

Pierre.Sassoulas
Pierre.Sassoulas

Reputation: 4282

You don't, you git add the file then apply the autoformat to fix the problem (probably black seeing your output?). Once you have applied the autoformatter you can check git diff to see what changed.

Upvotes: 1

Related Questions