Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 25, 2024
1 parent 56ea284 commit 15ca056
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/integrations/github_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +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`. Note that this requires Python >= 3.11, so using the setup-python action may be required, for example:
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'
python-version: "3.13"
- uses: psf/black@stable
with:
options: "--check --verbose"
Expand Down

0 comments on commit 15ca056

Please sign in to comment.