Skip to content

Commit

Permalink
Note required python version for use_pyproject: true (#4503)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattwmaster58 authored Oct 25, 2024
1 parent c98fc0c commit 53a2190
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/integrations/github_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 53a2190

Please sign in to comment.