chilly-holiday-77415
12/16/2022, 1:11 PM./pants check ::
- specifically using mypy. It seems that Pants runs mypy per-file, which as far as I understand ignores any exclude
arg passed to mypy. I don’t want to typecheck my tests - is that something I can do?refined-addition-53644
12/16/2022, 1:18 PMpyproject.toml
[tool.mypy]
namespace_packages = true
strict = true
# Error output
show_column_numbers = true
show_error_context = true
show_error_codes = true
show_traceback = true
pretty = true
color_output = true
error_summary = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
refined-addition-53644
12/16/2022, 1:26 PMchilly-holiday-77415
12/16/2022, 1:28 PMrefined-addition-53644
12/16/2022, 1:31 PMfast-nail-55400
12/16/2022, 2:24 PMfast-nail-55400
12/16/2022, 2:24 PMskip_mypy=True
on a targetfast-nail-55400
12/16/2022, 2:25 PM__defaults__
to set skip_mypy
(or any field for that matter) on multiple targets in a directory treefast-nail-55400
12/16/2022, 2:26 PMfast-nail-55400
12/16/2022, 2:27 PM__defaults__
- https://www.pantsbuild.org/docs/targets#field-default-valuesrefined-addition-53644
12/16/2022, 2:27 PM___defaults___
happy-kitchen-89482
12/16/2022, 3:59 PM__defaults__(python_tests=dict(skip_mypy=True))
happy-kitchen-89482
12/16/2022, 4:00 PMchilly-holiday-77415
12/16/2022, 4:32 PM