diff --git a/.github/workflows/pyupgrade.yml b/.github/workflows/pyupgrade.yml index 22af5bbdf..6df16bad9 100644 --- a/.github/workflows/pyupgrade.yml +++ b/.github/workflows/pyupgrade.yml @@ -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 \ No newline at end of file