Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions .github/workflows/diff_shades.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ concurrency:

env:
HATCH_BUILD_HOOKS_ENABLE: "1"
PIP_UPLOADED_PRIOR_TO: P2D
# Clang is less picky with the C code it's given than gcc (and may generate faster
# binaries too).
CC: clang-18
Expand All @@ -44,8 +45,10 @@ jobs:
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: --group diff-shades --group diff-shades-comment
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install --group diff-shades --group diff-shades-comment

- name: Calculate run configuration & metadata
id: set-config
Expand Down Expand Up @@ -73,8 +76,10 @@ jobs:
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: --group diff-shades
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install --group diff-shades

- name: Configure git
run: |
Expand Down Expand Up @@ -128,8 +133,10 @@ jobs:
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: --group diff-shades
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install --group diff-shades

- name: Configure git
run: |
Expand Down Expand Up @@ -196,8 +203,10 @@ jobs:
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: --group diff-shades --group diff-shades-comment
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install --group diff-shades --group diff-shades-comment

- name: Generate HTML diff report
run: |
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/diff_shades_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

permissions: {}

env:
PIP_UPLOADED_PRIOR_TO: P2D

jobs:
comment:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -81,8 +84,10 @@ jobs:
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: --group diff-shades-comment
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install --group diff-shades-comment

- name: Get PR number
id: pr
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
permissions:
contents: read

env:
PIP_UPLOADED_PRIOR_TO: P2D

jobs:
docs:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
Expand All @@ -34,8 +37,10 @@ jobs:
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: -e .[d] --group docs
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install -e ".[d]" --group docs

- name: Build documentation
run: sphinx-build -a -b html -W --keep-going docs/ docs/_build
9 changes: 7 additions & 2 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ concurrency:
permissions:
contents: read

env:
PIP_UPLOADED_PRIOR_TO: P2D

jobs:
fuzz:
runs-on: ubuntu-latest
Expand All @@ -37,8 +40,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
pip-version: "25.3"
pip-install: --group tox
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install --group tox

- name: Run fuzz tests
id: fuzz
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on: [push, pull_request]

permissions: {}

env:
PIP_UPLOADED_PRIOR_TO: P2D

jobs:
lint:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
Expand Down Expand Up @@ -31,8 +34,10 @@ jobs:
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: -e . --group tox
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install -e . --group tox

- name: Run pre-commit hooks
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/publish_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:

permissions: {}

env:
PIP_UPLOADED_PRIOR_TO: P2D

jobs:
publish:
name: publish (${{ matrix.os }})
Expand Down Expand Up @@ -51,8 +54,10 @@ jobs:
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: .[colorama] --group pyinstaller
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install ".[colorama]" --group pyinstaller

- name: Build executable with PyInstaller
run:
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/pypi_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
permissions: {}

env:
PIP_UPLOADED_PRIOR_TO: P2D
PROJECT: https://pypi.org/p/black

jobs:
Expand All @@ -27,8 +28,10 @@ jobs:
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: --group cibw
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install --group cibw

- name: generate matrix
if: |
Expand Down Expand Up @@ -80,8 +83,10 @@ jobs:
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: --group cibw
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install --group cibw

- name: Run cibuildwheel
run: cibuildwheel . --only ${{ matrix.only }}
Expand All @@ -105,8 +110,10 @@ jobs:
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: --group hatch
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install --group hatch

- name: Build wheel and source distributions
run: python -m hatch build
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/release_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:

permissions: {}

env:
PIP_UPLOADED_PRIOR_TO: P2D

jobs:
test-release-tool:
# We want to run on external PRs, but not on our own internal PRs as they'll be run
Expand Down Expand Up @@ -41,8 +44,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
pip-version: "25.3"
pip-install: --group coverage
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install --group coverage

- name: Print Python Version
run: python --version --version && which python
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
permissions:
contents: read

env:
PIP_UPLOADED_PRIOR_TO: P2D

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
Expand Down Expand Up @@ -56,8 +59,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
pip-version: "25.3"
pip-install: --group tox
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install --group tox

- name: Unit tests
if: "!startsWith(matrix.python-version, 'pypy')"
Expand Down Expand Up @@ -116,8 +121,10 @@ jobs:
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
pip-version: "25.3"
pip-install: -e .[uvloop]
pip-version: "26.1"

- name: Install dependencies
run: python -m pip install -e ".[uvloop]"

- name: Format ourselves
run: python -m black --check .
Loading