Skip to content

Conversation

@amoeba
Copy link
Contributor

@amoeba amoeba commented Dec 2, 2025

What's Changed

Makes the RAT pre-commit command mores resilient when it encounters binary files. Without this change, pre-commit just fails with a cryptic UnicdoeDecodeError without any context for which file failed. Handling rat-excludes happens below this line so excluding any files you suspect may be the cause doesn't help.

@amoeba amoeba requested a review from lidavidm as a code owner December 2, 2025 21:52
@amoeba amoeba force-pushed the fix/unicode-error branch from 0d3d976 to 8c9e0a9 Compare December 2, 2025 21:59
@amoeba amoeba changed the title fix(rat): handle binary files more gracefully fix(adbc_drivers_dev/rat): handle binary files more gracefully Dec 2, 2025
@amoeba
Copy link
Contributor Author

amoeba commented Dec 2, 2025

@lidavidm I think there might be a few ways to go about this so I'm open to suggestions here.

@lidavidm lidavidm merged commit 8a39175 into adbc-drivers:main Dec 2, 2025
4 of 5 checks passed
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