Skip to content

Allow for custom file path mapping#85

Merged
pquentin merged 3 commits intopython-trio:masterfrom
robsdedude:feat/custom-file-mapping
Feb 5, 2026
Merged

Allow for custom file path mapping#85
pquentin merged 3 commits intopython-trio:masterfrom
robsdedude:feat/custom-file-mapping

Conversation

@robsdedude
Copy link
Contributor

I have a rather involved unasync workflow that integrates with pre-commit and isort (because after unasyncing, the import order often changes as things get renamed).

For this to work, I need to be able to put the unasynced files into a different place temporarily to further process them (run isort, check the diff, ...). Now, I could use a temporary directory but mapping files that way is more complicated to manage (e.g., clean-up when the process is interrupted in the middle, mapping of files).

Therefore, I'd really appreciate a way to customize exactly what path the unasync output is being written to.

Copy link
Member

@pquentin pquentin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, inheritance seems fragile, but happy to merge if it helps you.

@pquentin pquentin merged commit 76a03b8 into python-trio:master Feb 5, 2026
23 checks passed
@robsdedude robsdedude deleted the feat/custom-file-mapping branch February 5, 2026 09:58
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