Whole file
klen/pylama
The author described this change as “Fix `RunContext.get_params` for `ignore` and `select` linter params”. It counts as a record because the check below fails on the code as it stood at ead7fafac and passes on 1cb3c0c78, with nothing else changed between the two runs.
Projectklen/pylama
Fix saved2021-12-07
Sharing licenceMIT · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a save note
Fix `RunContext.get_params` for `ignore` and `select` linter params
The change
| 156 | 156 | """Get params for a linter with the given name.""" | |
| 157 | 157 | lparams = self.linters_params.get(name, {}) | |
| 158 | 158 | for key in ("ignore", "select"): | |
| 159 | - | if key in lparams: | |
| 159 | + | if key in lparams and not isinstance(lparams[key], set): | |
| 160 | 160 | lparams[key] = set(lparams[key].split(",")) | |
| 161 | 161 | return lparams | |
| 162 | 162 |
The check that tells the two apart
fail→pass·tests/test_context.py::test_get_params_doesnt_fail_on_subsequent_invocation
Check file tests/test_context.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before itead7fafacf51800af4ffca9af48df0f3d4317e23
Broken version dated2021-12-03
Modulepylama.context
Units changedRunContext
Fingerprintb2328a88175417aa
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.