Commit 99a5b41
committed
Ignore UP015 ruff rule for explicit open() mode arguments
Ruff's UP015 rule flags explicit 'r' mode in open() as unnecessary
since it's the default. However, we explicitly added these to fix
test compatibility - the tests expect open(path, 'r') to be called
with the mode argument.
This is a case where explicit is better than implicit for:
- Test compatibility with existing mock expectations
- Code clarity and documentation of intent
- Consistency with write operations that use 'w' mode
All ruff checks now pass.1 parent f28950e commit 99a5b41
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
0 commit comments