Skip to content

Conversation

@bmos
Copy link
Contributor

@bmos bmos commented Jul 12, 2025

https://docs.astral.sh/ruff/rules/#pyupgrade-up

A tool to automatically upgrade python syntax to that of newer versions.

  • Reduction in boilerplate code

    • List, Dict, Tuple, etc become list, dict tuple (which don't need to be imported)
    • object is no longer explicitly imported with new classes
  • Calls to .format() become f-strings

  • EnvironmentError -> OSError

  • Added explicit return None in some places where it was just return

  • Remove mode="r" from calls to open() as this is default behavior

@bmos bmos changed the title add Pyupgrade rules add ruff Pyupgrade rules Jul 12, 2025
@github-actions
Copy link

github-actions bot commented Jul 12, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  parsons/action_network
  action_network.py
  parsons/aws
  s3.py 43
  parsons/bill_com
  bill_com.py
  parsons/catalist
  catalist.py
  parsons/databases
  discover_database.py
  parsons/databases/redshift
  redshift.py 1038-1044
  rs_copy_table.py 135-136, 147-148
  rs_create_table.py 87
  rs_table_utilities.py 10, 31-49
  parsons/facebook_ads
  facebook_ads.py 89-92
  parsons/google
  google_bigquery.py 1410
  utilities.py 65
  parsons/hustle
  hustle.py 606-608
  parsons/nation_builder
  nation_builder.py 100, 111-116
  parsons/newmode
  newmode.py 141, 194, 215-216, 238-239, 278-279, 297, 318-319, 337, 359, 381
  parsons/ngpvan
  people.py 11
  saved_lists.py 16, 316
  scores.py 16, 233
  parsons/redash
  redash.py
  parsons/scytl
  scytl.py 108
  parsons/sftp
  sftp.py 514-521
  parsons/shopify
  shopify.py 48
  parsons/targetsmart
  targetsmart_api.py 313
  parsons/utilities/dbt
  dbt.py 3-7, 15-16, 69
  parsons/zoom
  zoom.py 232-235
Project Total  

The report is truncated to 25 files out of 81. To see the full report, please visit the workflow summary page.

This report was generated by python-coverage-comment-action

@shaunagm shaunagm merged commit 2ebb695 into move-coop:main Sep 12, 2025
84 checks passed
@bmos bmos deleted the typing branch September 22, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants