Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: add --select option to make checks opt-in #265

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

jameslamb
Copy link
Owner

@jameslamb jameslamb commented Oct 18, 2024

fixes #264

Introduces a new configuration option, --select, with usage similar to ruff's option of the same name. If this flag (or the corresponding pyproject.toml option) is supplied, it switches pydistcheck from opt-out behavior ("run all checks except those in ignore") to opt-in behavior ("run only the checks indicated by select").

For example, to say "only run the checks on file size" and avoid running any others:

pydistcheck \
  --select 'distro-too-large-compressed' \
  --max-distro-size-compressed '100M' \
  --select 'distro-too-large-uncompressed' \
  --max-distro-size-uncompressed '300M' \
  dist/*.whl

@jameslamb jameslamb added the enhancement New feature or request label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature request] add configuration to make checks opt-in instead of opt-out
1 participant