Skip to content

Commit

Permalink
Use --target-version in ruff format invokation
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Oct 26, 2023
1 parent 20fe7e8 commit 15733ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/autofix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ jobs:
autopep8 --recursive --in-place --max-line-length 88 --select E501 --aggressive
${{ needs.project-metadata.outputs.python_files }}
- name: Run Ruff format
# --target-version has no effect yet, but will be: https://github.com/astral-sh/ruff/pull/8055
run: |
ruff format .
ruff format ${{ needs.project-metadata.outputs.ruff_params }} .
- name: Run blacken-docs
# blacken-docs reuses Black's ``--target-version pyXY`` parameter.
# Ignore failing command: blacken-docs returns 1 if it finds a file that needs to be reformatted:
Expand Down

0 comments on commit 15733ca

Please sign in to comment.