Skip to content

Commit

Permalink
ci: convert existing CI job to run pyupgrade through Darker
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Oct 19, 2024
1 parent 2372b71 commit f5237d5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/pyupgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,4 @@ jobs:
uses: astral-sh/setup-uv@v3
- uses: actions/setup-python@v5
- name: Ensure modern Python style using pyupgrade
# This script is written in a Linux / macos / windows portable way
run: |
uvx --from pyupgrade python -c "
import sys
from pyupgrade._main import main
from glob import glob
files = glob('**/*.py', recursive=True)
sys.exit(main(files + ['--py38-plus']))
" || ( git diff ; false )
run: uvx --from '.[pyupgrade]' darker --formatter=pyupgrade --diff

0 comments on commit f5237d5

Please sign in to comment.