proud-dentist-22844
02/10/2023, 12:46 AMbitter-ability-32190
02/10/2023, 2:13 AMbitter-ability-32190
02/10/2023, 2:14 AMproud-dentist-22844
02/10/2023, 2:15 AMTechnically you should've had a subsystem.Ah, but I used
PexFromTargetsRequest
to run the "linter" and "formatter" defined within the repo. So, there was no subsystem before as I did not need to define any external tool details.proud-dentist-22844
02/10/2023, 2:16 AMbitter-ability-32190
02/10/2023, 2:19 AM--skip
optionproud-dentist-22844
02/10/2023, 2:20 AMPexFromTargets
that can act as a formatter and a linter, then I could delete 3 of my plugins which are just light wrappers to integrate in-repo scripts into pants fmt
and lint
goals.bitter-ability-32190
02/10/2023, 2:21 AMproud-dentist-22844
02/10/2023, 2:21 AMbitter-ability-32190
02/10/2023, 2:21 AMbitter-ability-32190
02/10/2023, 2:22 AMproud-dentist-22844
02/10/2023, 2:22 AMbitter-ability-32190
02/10/2023, 2:23 AMproud-dentist-22844
02/10/2023, 2:53 AMbitter-ability-32190
02/10/2023, 2:55 AMproud-dentist-22844
02/10/2023, 2:56 AMhttps://github.com/pantsbuild/pants/issues/12449This has to do with moving the version definition for existing backends from pants.toml into BUILD files. I don't think it would help with eliminating my fmt/lint plugins by taking a random target and saying that its output should be used as a fmt or a lint tool.
bitter-ability-32190
02/10/2023, 2:57 AMpython_requirement
that's exactly what that ticket describesproud-dentist-22844
02/10/2023, 2:58 AMbitter-ability-32190
02/10/2023, 2:58 AMbitter-ability-32190
02/10/2023, 2:58 AMproud-dentist-22844
02/10/2023, 2:58 AMbitter-ability-32190
02/10/2023, 2:59 AMbitter-ability-32190
02/10/2023, 2:59 AMproud-dentist-22844
02/10/2023, 2:59 AM@rule()
async def generate_schemas_partitioner(
request: GenerateSchemasViaFmtTargetsRequest.PartitionRequest,
) -> Partitions[GenerateSchemasFieldSet, _EmptyMetadata]:
return Partitions.single_partition(request.field_sets)
bitter-ability-32190
02/10/2023, 2:59 AMbitter-ability-32190
02/10/2023, 3:00 AMproud-dentist-22844
02/10/2023, 3:01 AMpartitioner_type = PartitionerType.DEFAULT_SINGLE_PARTITION
for 1 lint rule and 1 fmt rule. The other 2 fmt rules needed field_sets instead of files.bitter-ability-32190
02/10/2023, 3:02 AMproud-dentist-22844
02/10/2023, 3:02 AMproud-dentist-22844
02/10/2023, 3:03 AMproud-dentist-22844
02/10/2023, 3:03 AMbitter-ability-32190
02/10/2023, 3:03 AMbitter-ability-32190
02/10/2023, 3:04 AMproud-dentist-22844
02/10/2023, 3:04 AMproud-dentist-22844
02/10/2023, 3:04 AMbitter-ability-32190
02/10/2023, 3:04 AMbitter-ability-32190
02/10/2023, 3:05 AMbitter-ability-32190
02/10/2023, 3:06 AMproud-dentist-22844
02/10/2023, 7:58 AMResult::unwrap()
on an Err
value: "Field globs
was not convertible to type alloc:vecVec<allocstringString> PyErr { type: <class 'TypeError'>, value: TypeError(\"'APISpecFieldSet' object cannot be converted to 'PyString'\"), traceback: None }"', src/nodes.rs:770`
Oddly enough, I don't get the rust ERROR locally, I only get the `Filesystem changed during run: retrying Lint
in 500ms...` message in an endless loop.
I guess I'm not done updating my plugins for 2.15proud-dentist-22844
02/10/2023, 8:01 AMfix_batch
rule.bitter-ability-32190
02/10/2023, 12:44 PMbitter-ability-32190
02/10/2023, 12:51 PM