Commit 8a39175
authored
fix(adbc_drivers_dev/rat): handle binary files more gracefully (#16)
## 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.1 parent 8ba235d commit 8a39175
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| |||
0 commit comments