implement pyproject.toml for dependencies #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: pyupgrade | |
on: push # yamllint disable-line rule:truthy | |
jobs: | |
pyupgrade: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
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 ) |