pinterest / arcanist-linters

A collection of custom Arcanist linters
Apache License 2.0
63 stars 45 forks source link

Black linter message #27

Closed anikamukherji closed 4 years ago

anikamukherji commented 4 years ago

• Change --quiet to --check, this will result in messages that the linter failed rather than quietly making changes, which may compete with other linters like isort • Add --skip-string-normalization option • More verbose error message for when --check fails:

   Error  () BLACK
    Please run `black -S <FILEPATH>`

for when black.stringnormalizaton = false

and

   Error  () BLACK
    Please run `black <FILEPATH>`

for when black.stringnormalizaton = true