fresh-cat-90827
11/10/2021, 10:52 PMpython_library
declarations to be, e.g. python_library(skip_mypy=True)
or replacing them with a macro (not feasible with the combinations of linter/formatter/type checker true/false). I wasn’t able to find a way to do this, I am afraid.python_library(some_flag_to_run_mypy=True)
to actually enable it. Or is my only option to achieve this is to replace all python_library
declarations with python_library(skip_foo=True, skip_bar=True, skip_baz=True)
and then remove those skip_X
pieces as the project is ready to start linting/formatting/type checking?
I cannot specify in the pants.toml
:
[mypy]
skip = true
because this will disable it across the whole repo.hundreds-father-404
11/10/2021, 10:54 PMcustom_python_library
(e.g. via a macro), or disable the tool entirely
Relates to https://pantsbuild.slack.com/archives/C046T6T9U/p1636564914098300fresh-cat-90827
11/10/2021, 10:56 PMhundreds-father-404
11/10/2021, 10:56 PM