Skip to content

Conversation

@ajaxbits
Copy link
Contributor

@ajaxbits ajaxbits commented Sep 5, 2025

Adds a exclude-commands input to allow for user flexibility in what "tasks" are exported by the tool.

Users have a need to run certain commands only in certain GHA workflows/environments, but not in others. This enables them to do that.

exclude-commands

The exclude-commands input is inspired by docker/build-push-action’s tags input.

You can provide exclude-commands as either:

  • A single string, which applies globally to all projects.
  • A multi-line string of key-value pairs, allowing per-project exclusions.
  • Or both! Global excludes can easily intermingle with project-level excludes.

Global Excludes

If you pass a single string, that command will be excluded from every project. For example:

exclude-commands: "test"

This prevents any test command from being exported across all projects in the repo.

Per-Project Excludes

To exclude a command from a specific project, use project= and command=. For example:

exclude-commands: |
  project=my-package-1,command=test
  project=my-package-2,command=lint
  project=my-package-1,command=install

This configuration excludes:

  • The test and install commands for my-package-1
  • The lint command for my-package-2

Other changes

  • All dependabot changes are wrapped up and merged
  • Due to package upgrades, the eslint config was moved as per guidance to the .cjs format.
  • Unused code paths were deleted.

Tip

There's a lot going on here, so I recommend going commit-by-commit.

dependabot bot and others added 13 commits August 12, 2025 15:14
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [eslint](https://github.com/eslint/eslint) from 9.26.0 to 9.34.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v9.26.0...v9.34.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.34.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) from 29.7.0 to 30.1.3.
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v30.1.3/packages/jest)

---
updated-dependencies:
- dependency-name: jest
  dependency-version: 30.1.3
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.4.0 to 5.0.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v4.4.0...v5.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@ajaxbits ajaxbits force-pushed the INFRAHELP-2529-add-skips branch from eaf4716 to 9bf05fd Compare September 5, 2025 18:51
@ajaxbits ajaxbits marked this pull request as ready for review September 5, 2025 19:00
@ajaxbits ajaxbits changed the title [INFRAHELP-2529] feat: add skips [INFRAHELP-2529] feat: add exclue-commands Sep 5, 2025
@ajaxbits ajaxbits changed the title [INFRAHELP-2529] feat: add exclue-commands [INFRAHELP-2529] feat: add exclude-commands Sep 5, 2025
Copy link
Member

@BrandonLWhite BrandonLWhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for the dependency updates too!
Please update the README either in this PR or a follow-up.

@ajaxbits ajaxbits force-pushed the INFRAHELP-2529-add-skips branch from b104596 to 04ccb94 Compare September 8, 2025 17:35
@ajaxbits ajaxbits force-pushed the INFRAHELP-2529-add-skips branch from 04ccb94 to ba52ba8 Compare September 8, 2025 17:38
@BrandonLWhite BrandonLWhite merged commit 06c57ca into python-build-tools:main Sep 8, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants