Skip to content

Replace "{}".format(x) strings with f"{x}" strings throughout library + other hygiene changes#205

Open
mbjackson-capp wants to merge 12 commits intomasterfrom
hygiene
Open

Replace "{}".format(x) strings with f"{x}" strings throughout library + other hygiene changes#205
mbjackson-capp wants to merge 12 commits intomasterfrom
hygiene

Conversation

@mbjackson-capp
Copy link
Contributor

@mbjackson-capp mbjackson-capp commented Jun 27, 2025

First step in the "code hygiene" project. Improves readability (and in some cases allows for trimming excess variable declarations).

I ran a build and ran a complete diff check against prod to make sure no errors were introduced, and almost everything is exactly the same; a couple hundred addresses differ with respect to unit type ("#" vs. "APT", e.g.) or attributes like zip or zip4. I am reasonably sure this is because the dev branch was a few passyunk(_automation) versions behind prod (2.26 instead of 2.31); I updated it and will run again over the weekend, so we can ensure there is an exact match before we merge. See ais_diff_fstring_06-27-25.txt.

If/when this is merged, we should not delete the branch; I plan to do additional "code hygiene" commits here and merge them as they are ready.

@mbjackson-capp
Copy link
Contributor Author

I am making more changes here and testing them, so will hold off on merging until this represents a larger merge of a larger set of the hygiene commits

@mbjackson-capp mbjackson-capp changed the title Replace "{}".format(x) strings with f"{x}" strings throughout library; trim some unneeded code Replace "{}".format(x) strings with f"{x}" strings throughout library + other hygiene changes Jul 1, 2025
gis_planning.Neighborhoods
gis_planning.Zoning_SteepSlopeProtectArea_r
gis_planning.FEMA_100_FLOOD_PLAIN
gis_planning.FEMA_500_FLOOD_PLAIN
gis_planning.Land_Use
gis_police.Boundaries_Sector
gis_rda.lama_assets_0725
gis_orphan.Recreation_Districts
gis_gsg.LITTER_SCHEMA_TEST
…now handled by reading attributes from passyunk_automation)
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.

1 participant