Ignore flake8 E741 (ambiguous variable name)#8000
Ignore flake8 E741 (ambiguous variable name)#8000hoechenberger wants to merge 1 commit intomne-tools:masterfrom
Conversation
Running flake8 on master gives me: ./tutorials/source-modeling/plot_background_freesurfer_mne.py:133:22: E741 ambiguous variable name 'I' I don't think this rule is very useful (as we'll spot badly-named variables during the code review anyway), so this PR disables it.
|
@larsoner Travis fails with I checked and the docstrings look alright on Py 3.7 and 3.8, so this seems to be a Py 3.6 thing… |
|
I would rather rename the variable and keep the check |
|
Or noqa it if it's a valuable exception |
|
@larsoner That said, maybe there's an easier solution: ori_slice = dict(P='Coronal', A='Coronal',
I='Axial', S='Axial',
L='Sagittal', R='Saggital') we could use the |
|
Seeing that the docstyle tests pass for #7991 after it has been rebased on Still-- what do we do about the Travis poblem? |
|
Just for reference, I've updated to: and I don't see this error anymore. |
Running flake8 on master gives me:
mne-python/tutorials/source-modeling/plot_background_freesurfer_mne.py
Lines 132 to 137 in d839a6c
I don't think this rule is very useful (as we'll spot badly-named variables during the code review anyway), so this PR disables it.