Skip to content

Add an option to black-primer to run on a sample of projects #2578

@Smlep

Description

@Smlep

Hi 👋

Is your feature request related to a problem? Please describe.

Here

 # TODO: Offer more options here
 # e.g. Run on X random packages etc.

is written that adding more options to black-primer so that only a part of all the projects in config could be used should be done.

Describe the solution you'd like

Add an option --random-packages-count N, N being an int.
Then, only run the tests on N of the packages in primer.json.
If N is greater than the count of packages in primer.json, every package should be used.

Additional context

I'd be happy to submit a PR to implement this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: maintenanceRelated to project maintenance, e.g. CI, testing, policy changes, releasesT: enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions