E3SM-Project / polaris

Testing and analysis for OMEGA, MPAS-Ocean, MALI and MPAS-Seaice
BSD 3-Clause "New" or "Revised" License
6 stars 13 forks source link

Add flynt package to linter for updating format strings #74

Closed altheaden closed 1 year ago

altheaden commented 1 year ago

Flynt is a package that automatically converts older-style formatting strings to f-strings. I've added this to pre-commit so that any incoming changes will use f-strings by default.

Checklist

altheaden commented 1 year ago

This is a draft PR because we are waiting on Flynt being added to conda-forge. @xylar and I made a merge request there, and it's waiting for review. This PR depends on those changes being accepted.