certego / .github

CI repo for Certego DevOps
https://www.certego.net
5 stars 0 forks source link

Add `use_pyupgrade` #119

Closed mlodic closed 1 year ago

mlodic commented 1 year ago

Add pyupgrade both on pre-commit and tests:

  # Upgrade to the latest Python syntax with https://github.com/asottile/pyupgrade
  - uses: install-pinned/pyupgrade@0bb513444c8ff7ce06d3f76e271d1ee7028c3640
  - name: Run pyupgrade
    run: |  
      shopt -s globstar
      pyupgrade --exit-zero-even-if-changed --py310-plus **/*.py
0ssigeno commented 1 year ago

Not implementing this till the linter allows a --check, or --dry-run