From 53a219056d1ab092ee2d4e5181c55c2e58c4756c Mon Sep 17 00:00:00 2001 From: Mattwmaster58 Date: Thu, 24 Oct 2024 21:58:24 -0400 Subject: [PATCH] Note required python version for use_pyproject: true (#4503) --- docs/integrations/github_actions.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/integrations/github_actions.md b/docs/integrations/github_actions.md index c527253b562..61689799731 100644 --- a/docs/integrations/github_actions.md +++ b/docs/integrations/github_actions.md @@ -74,9 +74,14 @@ If you want to match versions covered by Black's version: "~= 22.0" ``` -If you want to read the version from `pyproject.toml`, set `use_pyproject` to `true`: +If you want to read the version from `pyproject.toml`, set `use_pyproject` to `true`. +Note that this requires Python >= 3.11, so using the setup-python action may be +required, for example: ```yaml +- uses: actions/setup-python@v5 + with: + python-version: "3.13" - uses: psf/black@stable with: options: "--check --verbose"