pinterest / arcanist-linters

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

Add a Python version check to the black linter #29

Closed jparise closed 4 years ago

jparise commented 4 years ago

When configured, this verifies that we're running the expected Python version. We check this using the python3 executable (because black only support Python 3).

If we don't find the expected Python version, we print a warning and skip linting with black. This isn't a fatal error for the lint workflow, unlike most of our other version checks.