Remove black, use ruff for generated config_models (#23588) #908
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Verify dependency resolution pin | |
| on: | |
| # merge_group is what GitHub's merge queue dispatches to required checks; | |
| # without it, this workflow can be required-but-never-reported and | |
| # leave queued PRs stuck. The push trigger on gh-readonly-queue/** is kept | |
| # as a belt-and-braces complement. | |
| merge_group: | |
| push: | |
| branches: | |
| # gh-readonly-queue/** is the blocking case: a failing run here keeps the | |
| # merge queue from landing a commit with a stale resolution pin. | |
| # master and 7.*.* are informational: direct pushes have no gate to fail, | |
| # so a red check on those refs surfaces drift (e.g. a reverted pin commit) | |
| # without preventing anything. | |
| - gh-readonly-queue/** | |
| - master | |
| - 7.*.* | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| PYTHON_VERSION: "3.13" | |
| jobs: | |
| verify: | |
| name: Verify resolution hash matches pin | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Python ${{ env.PYTHON_VERSION }} | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Verify resolution pin | |
| run: | | |
| # Fails if the merged tree's resolution hash does not match the | |
| # pinned hash in .deps/builder_inputs.toml. | |
| # If this check fails, rebase your branch onto master to re-trigger | |
| # dependency resolution and update the pin. | |
| cd .builders && python inputs_hash.py verify-resolution |