pinterest / arcanist-linters

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

Always pass --quiet and --check to black #31

Closed jparise closed 4 years ago

jparise commented 4 years ago

This linter is currently written to only check the format of Python files but not to also autoformat them (which would conflict with the isort linter; more work here is needed). Given that, we should always pass these flags to black.

Also, check for the 0 error code, which indicates that black didn't find any formatting issues in the linted file.