Skip to content

Extract common utils in rendering SRAWN#82

Open
PeterJCLaw wants to merge 3 commits into
mainfrom
common-utils
Open

Extract common utils in rendering SRAWN#82
PeterJCLaw wants to merge 3 commits into
mainfrom
common-utils

Conversation

@PeterJCLaw

@PeterJCLaw PeterJCLaw commented Sep 14, 2024

Copy link
Copy Markdown
Member

This removes a lot of duplicate handling & validation of path names in favour of having a single source of this logic. It also relocates a couple of instances of similar but separate logic to being alongside each other within the utils file so that even though they can't share code, they are at least defined next to each other.

Alongside doing this, we also fix some warnings from Python due to the regexes not being marked as raw strings (such that '\d' was previously trying to be an escape at the string parsing level, rather than a regex escape).

Builds on #78.

@github-actions

github-actions Bot commented Sep 14, 2024

Copy link
Copy Markdown

Build has no changes.

@PeterJCLaw PeterJCLaw marked this pull request as ready for review September 14, 2024 13:32
This removes a lot of duplicate handling & validation of path names
in favour of having a single source of this logic. It also relocates
a couple of instances of similar but separate logic to being
alongside each other within the utils file so that even though they
can't share code, they are at least defined next to each other.

Alongside doing this, we also fix some warnings from Python due to
the regexes not being marked as raw strings (such that '\d' was
previously trying to be an escape at the string parsing level,
rather than a regex escape).
Base automatically changed from ci-diff to main July 6, 2025 11: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.

1 participant