bitter-ability-32190
10/24/2023, 1:56 PMRuns for `mypy`/`pylint` include files in the sandboxThis is coming up at work again, so I'm thinking of "fixing" it. It'd be a breaking change depending how you look at it (bugfix vs feature). TL;DR Should be put
file targets in linting/checking sandboxes?bitter-ability-32190
10/24/2023, 1:56 PMlate-advantage-75311
10/24/2023, 2:30 PMmypy_typecheck_partition code wrong because this line looks like it only includes `resources`:
python
closure_sources_get = Get(
PythonSourceFiles, PythonSourceFilesRequest(partition.root_targets.closure())
)
where
python
@dataclass(unsafe_hash=True)
class PythonSourceFilesRequest:
targets: tuple[Target, ...]
include_resources: bool
# ...
include_files: bool
def __init__(
self,
targets: Iterable[Target],
*,
include_resources: bool = True,
include_files: bool = False, # files not included
) -> None:
Is it pulling in the file dependencies at a different point?bitter-ability-32190
10/24/2023, 2:31 PMbitter-ability-32190
10/24/2023, 2:31 PMlate-advantage-75311
10/24/2023, 2:31 PMbitter-ability-32190
10/24/2023, 2:31 PMlate-advantage-75311
10/24/2023, 2:33 PMbitter-ability-32190
10/24/2023, 2:33 PMlate-advantage-75311
10/24/2023, 2:33 PMbitter-ability-32190
10/24/2023, 2:34 PMresource arebitter-ability-32190
10/24/2023, 2:34 PMlate-advantage-75311
10/24/2023, 2:36 PMresource mechanism to ensure that they are properly packaged by pants and made availablebitter-ability-32190
10/24/2023, 2:36 PMbitter-ability-32190
10/24/2023, 2:38 PMbitter-ability-32190
10/24/2023, 2:38 PMlate-advantage-75311
10/24/2023, 2:41 PMlate-advantage-75311
10/24/2023, 2:42 PMbitter-ability-32190
10/24/2023, 2:42 PMbitter-ability-32190
10/24/2023, 2:42 PM